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 | 8 | 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 | protected function search($query, $limit = null, $options = array()) |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | public function findPaginated($query, $options = array()) |
||
87 | 1 | ||
88 | /** |
||
89 | 1 | * {@inheritdoc} |
|
90 | */ |
||
91 | 1 | public function createPaginatorAdapter($query, $options = array()) |
|
97 | 1 | ||
98 | /** |
||
99 | 1 | * {@inheritdoc} |
|
100 | 1 | */ |
|
101 | public function createHybridPaginatorAdapter($query) |
||
107 | |||
108 | 2 | /** |
|
109 | * {@inheritdoc} |
||
110 | 2 | */ |
|
111 | public function createRawPaginatorAdapter($query, $options = array()) |
||
117 | } |
||
118 |