1 | <?php |
||
27 | class TransformedFinder implements PaginatedFinderInterface |
||
28 | { |
||
29 | protected $searchable; |
||
30 | protected $transformer; |
||
31 | |||
32 | /** |
||
33 | * @param SearchableInterface $searchable |
||
34 | * @param ElasticaToModelTransformerInterface $transformer |
||
35 | */ |
||
36 | 7 | public function __construct(SearchableInterface $searchable, ElasticaToModelTransformerInterface $transformer) |
|
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | 1 | public function find($query, $limit = null, $options = array()) |
|
51 | |||
52 | 1 | public function findHybrid($query, $limit = null, $options = array()) |
|
58 | |||
59 | /** |
||
60 | * @param $query |
||
61 | * @param null|int $limit |
||
62 | * @param array $options |
||
63 | * |
||
64 | * @return array |
||
65 | */ |
||
66 | 1 | protected function search($query, $limit = null, $options = array()) |
|
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | 1 | public function findPaginated($query, $options = array()) |
|
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | */ |
||
91 | 2 | public function createPaginatorAdapter($query, $options = array()) |
|
97 | |||
98 | /** |
||
99 | * {@inheritdoc} |
||
100 | */ |
||
101 | 1 | public function createHybridPaginatorAdapter($query) |
|
107 | |||
108 | /** |
||
109 | * {@inheritdoc} |
||
110 | */ |
||
111 | public function createRawPaginatorAdapter($query, $options = array()) |
||
117 | } |
||
118 |