| 1 | <?php |
||
| 9 | class PaginateOperation implements OperationInterface |
||
| 10 | { |
||
| 11 | protected $pageNumber; |
||
| 12 | |||
| 13 | protected $pageSize; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Constructor. |
||
| 17 | * |
||
| 18 | * @param int $pageNumber |
||
| 19 | * @param int $pageSize |
||
| 20 | */ |
||
| 21 | 3 | public function __construct($pageNumber = 1, $pageSize = 50) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @return int |
||
| 29 | */ |
||
| 30 | 3 | public function getPageNumber() |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @param int $pageNumber |
||
| 37 | * @return $this |
||
| 38 | */ |
||
| 39 | public function setPageNumber($pageNumber) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Returns page size. |
||
| 47 | * @return int |
||
| 48 | */ |
||
| 49 | 3 | public function getPageSize() |
|
| 53 | |||
| 54 | /** |
||
| 55 | * Sets page size. |
||
| 56 | * |
||
| 57 | * @param $pageSize |
||
| 58 | * @return $this |
||
| 59 | */ |
||
| 60 | public function setPageSize($pageSize) |
||
| 65 | } |
||
| 66 |