| 1 | <?php |
||
| 7 | class FantaPaginatorAdapter implements AdapterInterface |
||
| 8 | { |
||
| 9 | private $adapter; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @param \FOS\ElasticaBundle\Paginator\PaginatorAdapterInterface $adapter |
||
| 13 | */ |
||
| 14 | 1 | public function __construct(PaginatorAdapterInterface $adapter) |
|
| 18 | |||
| 19 | /** |
||
| 20 | * Returns the number of results. |
||
| 21 | * |
||
| 22 | * @return integer The number of results. |
||
| 23 | */ |
||
| 24 | public function getNbResults() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Returns Facets. |
||
| 31 | * |
||
| 32 | * @return mixed |
||
| 33 | */ |
||
| 34 | public function getFacets() |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Returns Aggregations. |
||
| 41 | * |
||
| 42 | * @return mixed |
||
| 43 | * |
||
| 44 | * @api |
||
| 45 | */ |
||
| 46 | public function getAggregations() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Returns a slice of the results. |
||
| 53 | * |
||
| 54 | * @param integer $offset The offset. |
||
| 55 | * @param integer $length The length. |
||
| 56 | * |
||
| 57 | * @return array|\Traversable The slice. |
||
| 58 | */ |
||
| 59 | public function getSlice($offset, $length) |
||
| 63 | } |
||
| 64 |