| 1 | <?php |
||
| 12 | class KnpPaginatorAdapter implements SearchingContextInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var PaginatorInterface |
||
| 16 | */ |
||
| 17 | private $paginator; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var QueryBuilderSearchingContext |
||
| 21 | */ |
||
| 22 | private $searchingContext; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | private $page; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var int |
||
| 31 | */ |
||
| 32 | private $limit; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @var array |
||
| 36 | */ |
||
| 37 | private $options; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param PaginatorInterface $paginator |
||
| 41 | * @param QueryBuilderSearchingContext $searchingContext |
||
| 42 | */ |
||
| 43 | 1 | public function __construct( |
|
| 53 | |||
| 54 | /** |
||
| 55 | * {@inheritdoc} |
||
| 56 | */ |
||
| 57 | 1 | public function getQueryBuilder() |
|
| 61 | |||
| 62 | /** |
||
| 63 | * {@inheritdoc} |
||
| 64 | */ |
||
| 65 | 1 | public function getResults() |
|
| 74 | |||
| 75 | /** |
||
| 76 | * @param int $page |
||
| 77 | */ |
||
| 78 | 1 | public function setPage($page) |
|
| 82 | |||
| 83 | /** |
||
| 84 | * @param int $limit |
||
| 85 | */ |
||
| 86 | 1 | public function setLimit($limit) |
|
| 90 | |||
| 91 | /** |
||
| 92 | * @param array $options |
||
| 93 | */ |
||
| 94 | 1 | public function setOptions(array $options = []) |
|
| 98 | } |
||
| 99 |