| 1 | <?php |
||
| 12 | class ImmutablePaginationAdapter implements PaginationQueryCriteriaInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var PaginationQueryCriteriaInterface |
||
| 16 | */ |
||
| 17 | private $pagination; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param PaginationQueryCriteriaInterface $pagination |
||
| 21 | */ |
||
| 22 | 9 | public function __construct(PaginationQueryCriteriaInterface $pagination) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @inheritDoc |
||
| 29 | */ |
||
| 30 | 3 | public function getPage() |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @inheritDoc |
||
| 37 | */ |
||
| 38 | 4 | public function getItemsPerPage() |
|
| 42 | |||
| 43 | /** |
||
| 44 | * @inheritDoc |
||
| 45 | */ |
||
| 46 | 4 | public function setPage($page) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * This method will not allow to change items per page. |
||
| 53 | * On each call it will set the same value |
||
| 54 | * @inheritDoc |
||
| 55 | */ |
||
| 56 | 4 | public function setItemsPerPage($itemsPerPage) |
|
| 64 | |||
| 65 | /** |
||
| 66 | * @inheritDoc |
||
| 67 | */ |
||
| 68 | 4 | public function shouldBeApplied() |
|
| 72 | } |
||
| 73 |