1 | <?php |
||
15 | class Page |
||
16 | { |
||
17 | /** |
||
18 | * @var string|int|null |
||
19 | */ |
||
20 | protected $number; |
||
21 | /** |
||
22 | * @var string|int|null |
||
23 | */ |
||
24 | protected $cursor; |
||
25 | /** |
||
26 | * @var string|int|null |
||
27 | */ |
||
28 | protected $limit; |
||
29 | /** |
||
30 | * @var string|int|null |
||
31 | */ |
||
32 | protected $offset; |
||
33 | /** |
||
34 | * @var string|int|null |
||
35 | */ |
||
36 | protected $size; |
||
37 | |||
38 | /** |
||
39 | * @param $number |
||
40 | * @param $cursor |
||
41 | * @param $limit |
||
42 | * @param $offset |
||
43 | * @param $size |
||
44 | */ |
||
45 | public function __construct($number, $cursor, $limit, $offset, $size) |
||
53 | |||
54 | /** |
||
55 | * @param $size |
||
56 | */ |
||
57 | public function setSize($size) |
||
61 | |||
62 | /** |
||
63 | * @return int|string |
||
64 | */ |
||
65 | public function cursor() |
||
69 | |||
70 | /** |
||
71 | * @return int|string |
||
72 | */ |
||
73 | public function limit() |
||
77 | |||
78 | /** |
||
79 | * @return int|string |
||
80 | */ |
||
81 | public function number() |
||
85 | |||
86 | /** |
||
87 | * @return int|string |
||
88 | */ |
||
89 | public function offset() |
||
93 | |||
94 | /** |
||
95 | * @return int|string |
||
96 | */ |
||
97 | public function size() |
||
101 | } |
||
102 |