PHP Class Smile\ElasticsuiteCore\Model\Search\Request\RelevanceConfig\Initial

Author: Romain Ruaud ([email protected])
Exibir arquivo Open project: smile-sa/elasticsuite Class Usage Examples

Protected Properties

Property Type Description
$data array Config data
$metadata array Config metadata

Public Methods

Method Description
__construct ( Reader $reader, Magento\Framework\App\Cache\Type\Config $cache ) Class constructor
getData ( string $scope ) : array Get initial data by given scope
getMetadata ( ) : array Get configuration metadata

Method Details

__construct() public method

Class constructor
public __construct ( Reader $reader, Magento\Framework\App\Cache\Type\Config $cache )
$reader Smile\ElasticsuiteCore\Model\Search\Request\RelevanceConfig\Initial\Reader The reader
$cache Magento\Framework\App\Cache\Type\Config Cache instance

getData() public method

Get initial data by given scope
public getData ( string $scope ) : array
$scope string Format is scope type and scope code separated by pipe: e.g. "type|code"
return array

getMetadata() public method

Get configuration metadata
public getMetadata ( ) : array
return array

Property Details

$data protected_oe property

Config data
protected array $data
return array

$metadata protected_oe property

Config metadata
protected array $metadata
return array