1 | <?php |
||
33 | class RestPaginator |
||
34 | { |
||
35 | /** |
||
36 | * @var int |
||
37 | * @Serializer\Expose |
||
38 | * @Serializer\Groups({"list"}) |
||
39 | * @Serializer\XmlAttribute |
||
40 | */ |
||
41 | private $page; |
||
42 | |||
43 | /** |
||
44 | * @var int |
||
45 | * @Serializer\Expose |
||
46 | * @Serializer\Groups({"list"}) |
||
47 | * @Serializer\XmlAttribute |
||
48 | */ |
||
49 | private $limit; |
||
50 | |||
51 | /** |
||
52 | * @var int |
||
53 | * @Serializer\Expose |
||
54 | * @Serializer\Groups({"list"}) |
||
55 | * @Serializer\XmlAttribute |
||
56 | */ |
||
57 | private $pages; |
||
58 | |||
59 | /** |
||
60 | * @var int |
||
61 | * @Serializer\Expose |
||
62 | * @Serializer\Groups({"list"}) |
||
63 | */ |
||
64 | private $total; |
||
65 | |||
66 | /** |
||
67 | * @var int |
||
68 | * @Serializer\Expose |
||
69 | * @Serializer\Groups({"list"}) |
||
70 | */ |
||
71 | private $items = []; |
||
72 | |||
73 | /** |
||
74 | * @param $page |
||
75 | * @param AbstractPagination $paginationView |
||
76 | * @param RelationPaginator $relationPaginator |
||
77 | */ |
||
78 | 1 | public function __construct($page, AbstractPagination $paginationView, RelationPaginator $relationPaginator) |
|
87 | |||
88 | /** |
||
89 | * @return int |
||
90 | */ |
||
91 | 1 | public function getPage() |
|
95 | |||
96 | /** |
||
97 | * @return int |
||
98 | */ |
||
99 | 1 | public function getLimit() |
|
103 | |||
104 | /** |
||
105 | * @return int |
||
106 | */ |
||
107 | 1 | public function getPages() |
|
111 | |||
112 | /** |
||
113 | * @return int |
||
114 | */ |
||
115 | 1 | public function getTotal() |
|
119 | |||
120 | /** |
||
121 | * @return array |
||
122 | */ |
||
123 | 1 | public function getItems() |
|
127 | |||
128 | /** |
||
129 | * @return Route |
||
130 | */ |
||
131 | 1 | public function getFirstLink() |
|
135 | |||
136 | /** |
||
137 | * @return Route |
||
138 | */ |
||
139 | 1 | public function getLastLink() |
|
143 | |||
144 | /** |
||
145 | * @return Route |
||
146 | */ |
||
147 | 1 | public function getSelfLink() |
|
151 | |||
152 | /** |
||
153 | * @param int $items |
||
154 | * |
||
155 | * @return $this |
||
156 | */ |
||
157 | 1 | public function setItems($items) |
|
161 | |||
162 | /** |
||
163 | * @param int $total |
||
164 | * |
||
165 | * @return $this |
||
166 | */ |
||
167 | 1 | public function setTotal($total) |
|
171 | |||
172 | /** |
||
173 | * @param int $pages |
||
174 | * |
||
175 | * @return $this |
||
176 | */ |
||
177 | 1 | public function setPages($pages) |
|
181 | |||
182 | /** |
||
183 | * @param int $limit |
||
184 | * |
||
185 | * @return $this |
||
186 | */ |
||
187 | 1 | public function setLimit($limit) |
|
191 | |||
192 | /** |
||
193 | * @param int $page |
||
194 | * |
||
195 | * @return $this |
||
196 | */ |
||
197 | 1 | public function setPage($page) |
|
201 | } |
||
202 |
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..