| 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 Aggregations. |
||
| 31 | * |
||
| 32 | * @return mixed |
||
| 33 | * |
||
| 34 | * @api |
||
| 35 | */ |
||
| 36 | public function getAggregations() |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Returns a slice of the results. |
||
| 43 | * |
||
| 44 | * @param integer $offset The offset. |
||
| 45 | * @param integer $length The length. |
||
| 46 | * |
||
| 47 | * @return array|\Traversable The slice. |
||
| 48 | */ |
||
| 49 | public function getSlice($offset, $length) |
||
| 53 | } |
||
| 54 |