1 | <?php |
||
8 | class Inputs |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | public $pagerKey = '_page'; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | public $limitKey = '_limit'; |
||
19 | |||
20 | /** |
||
21 | * @var int|null |
||
22 | */ |
||
23 | private $total = null; |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | private $list = []; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | public $path = ''; |
||
34 | |||
35 | /** |
||
36 | * @var array |
||
37 | */ |
||
38 | public $inputs = []; |
||
39 | |||
40 | /** |
||
41 | * @var PaginateInterface |
||
42 | */ |
||
43 | private $paginate; |
||
44 | |||
45 | /** |
||
46 | * Inputs constructor. |
||
47 | * |
||
48 | * @param PaginateInterface $paginate |
||
49 | */ |
||
50 | public function __construct($paginate = null) |
||
54 | |||
55 | /** |
||
56 | * get the limit, i.e. number of data per page. |
||
57 | * |
||
58 | * @return int |
||
59 | */ |
||
60 | public function getLimit() |
||
64 | |||
65 | /** |
||
66 | * get the offset for retrieving data. |
||
67 | * |
||
68 | * @return int |
||
69 | */ |
||
70 | public function getOffset() |
||
74 | |||
75 | /** |
||
76 | * get the current page number, starting from 1. |
||
77 | * |
||
78 | * @return int |
||
79 | */ |
||
80 | public function getPage() |
||
84 | |||
85 | /** |
||
86 | * get any key from query. |
||
87 | * |
||
88 | * @param string $key |
||
89 | * @param null|mixed $alt |
||
90 | * @return null|mixed |
||
91 | */ |
||
92 | public function get($key, $alt = null) |
||
98 | |||
99 | /** |
||
100 | * get total number of data. |
||
101 | * - total: number of all the possible data which can be retrieved. |
||
102 | * - count: number of data in the current list. |
||
103 | * |
||
104 | * @return int|null |
||
105 | */ |
||
106 | public function getTotal() |
||
110 | |||
111 | /** |
||
112 | * set the total of data. |
||
113 | * |
||
114 | * @param int|null $total |
||
115 | */ |
||
116 | public function setTotal($total) |
||
120 | |||
121 | /** |
||
122 | * set the data for list. |
||
123 | * |
||
124 | * @param mixed $list |
||
125 | */ |
||
126 | public function setList($list) |
||
130 | |||
131 | /** |
||
132 | * get the data for list. |
||
133 | * |
||
134 | * @return null|array|mixed |
||
135 | */ |
||
136 | public function getList() |
||
140 | |||
141 | /** |
||
142 | * get the count, i.e. number of data in the current list. |
||
143 | * count is the number of data in the current list. |
||
144 | * |
||
145 | * @return int |
||
146 | */ |
||
147 | public function getCount() |
||
154 | |||
155 | /** |
||
156 | * calculates the first page number, that is 1. |
||
157 | * |
||
158 | * @return int |
||
159 | */ |
||
160 | public function calcFirstPage() |
||
164 | |||
165 | /** |
||
166 | * calculates the last pager number. |
||
167 | * |
||
168 | * @return int |
||
169 | */ |
||
170 | public function calcLastPage() |
||
179 | |||
180 | /** |
||
181 | * @param null|int $page |
||
182 | * @return string |
||
183 | */ |
||
184 | public function getPath($page = null) |
||
192 | |||
193 | /** |
||
194 | * @return PaginateInterface |
||
195 | */ |
||
196 | public function getPagination() |
||
202 | |||
203 | /** |
||
204 | * @param PaginateInterface $paginate |
||
205 | */ |
||
206 | public function setPaginate($paginate) |
||
210 | } |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..