1 | <?php |
||
21 | class HybridPaginatorAdapter extends RawPaginatorAdapter |
||
22 | { |
||
23 | private $transformer; |
||
24 | |||
25 | /** |
||
26 | * @param SearchableInterface $searchable the object to search in |
||
27 | * @param Query $query the query to search |
||
28 | * @param ElasticaToModelTransformerInterface $transformer the transformer for fetching the results |
||
29 | */ |
||
30 | 2 | public function __construct(SearchableInterface $searchable, Query $query, ElasticaToModelTransformerInterface $transformer) |
|
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | 1 | public function getResults($offset, $length) |
|
46 | } |
||
47 |