public function __construct(Type $repository) { $this->repository($repository); $this->_elasticQuery = new ElasticaQuery(); }