1 | <?php |
||
16 | class FantaPaginatorAdapter implements AdapterInterface |
||
17 | { |
||
18 | private $adapter; |
||
19 | |||
20 | /** |
||
21 | * @param \FOS\ElasticaBundle\Paginator\PaginatorAdapterInterface $adapter |
||
22 | */ |
||
23 | 6 | public function __construct(PaginatorAdapterInterface $adapter) |
|
27 | |||
28 | /** |
||
29 | * Returns the number of results. |
||
30 | * |
||
31 | * @return int The number of results |
||
32 | */ |
||
33 | 1 | public function getNbResults() |
|
37 | |||
38 | /** |
||
39 | * Returns Aggregations. |
||
40 | * |
||
41 | * @return mixed |
||
42 | * |
||
43 | * @api |
||
44 | */ |
||
45 | 1 | public function getAggregations() |
|
49 | |||
50 | /** |
||
51 | * Returns Suggestions. |
||
52 | * |
||
53 | * @return mixed |
||
54 | * |
||
55 | * @api |
||
56 | */ |
||
57 | 1 | public function getSuggests() |
|
61 | |||
62 | /** |
||
63 | * Returns a slice of the results. |
||
64 | * |
||
65 | * @param int $offset The offset |
||
66 | * @param int $length The length |
||
67 | * |
||
68 | * @return array|\Traversable The slice |
||
69 | */ |
||
70 | 1 | public function getSlice($offset, $length) |
|
74 | |||
75 | /** |
||
76 | * {@inheritdoc} |
||
77 | */ |
||
78 | 1 | public function getMaxScore() |
|
82 | } |
||
83 |