/** * @param SearchableInterface $searchable the object to search in * @param Query $query the query to search * @param array $options * @param ProductElasticaToModelTransformer $transformer */ public function __construct(SearchableInterface $searchable, Query $query, array $options = array(), ProductElasticaToModelTransformer $transformer) { parent::__construct($searchable, $query, $options); $this->transformer = $transformer; }
/** * @param SearchableInterface $searchable the object to search in * @param Query $query the query to search * @param ElasticaToModelTransformerInterface $transformer the transformer for fetching the results */ public function __construct(SearchableInterface $searchable, Query $query, ElasticaToModelTransformerInterface $transformer) { parent::__construct($searchable, $query); $this->transformer = $transformer; }