Smile\ElasticsuiteCore\Index\Type::__construct PHP Метод

__construct() публичный Метод

Type construcor.
public __construct ( string $name, Smile\ElasticsuiteCore\Api\Index\MappingInterface $mapping, array $datasources = [] )
$name string Name of the type.
$mapping Smile\ElasticsuiteCore\Api\Index\MappingInterface Mapping of the type.
$datasources array Datasources of the type.
    public function __construct($name, MappingInterface $mapping, array $datasources = [])
    {
        $this->name = $name;
        $this->mapping = $mapping;
        $this->datasources = $datasources;
    }