1 | <?php |
||
10 | class Cursor |
||
11 | { |
||
12 | private $account; |
||
13 | /** @var Resource */ |
||
14 | private $resource; |
||
15 | private $params; |
||
16 | private $next_cursor = null; |
||
17 | private $current_index = 0; |
||
18 | private $total_count = 0; |
||
19 | /** @var array */ |
||
20 | private $collection; |
||
21 | |||
22 | public function __construct(/* @noinspection PhpUnnecessaryFullyQualifiedNameInspection */ |
||
30 | |||
31 | /** |
||
32 | * @return bool |
||
33 | */ |
||
34 | public function isExhausted() |
||
38 | |||
39 | /** |
||
40 | * @return integer |
||
41 | */ |
||
42 | public function count() |
||
46 | |||
47 | /** |
||
48 | * @return Resource |
||
49 | */ |
||
50 | public function first() |
||
54 | |||
55 | /** |
||
56 | * @return int |
||
57 | */ |
||
58 | public function fetched() |
||
62 | |||
63 | /** |
||
64 | * @return Resource | 0 |
||
65 | */ |
||
66 | public function next() |
||
83 | |||
84 | /** |
||
85 | * @param array $params |
||
86 | * @return Cursor |
||
87 | */ |
||
88 | public function fetchNext($params = []) |
||
111 | |||
112 | /** |
||
113 | * @param $request |
||
114 | * @return $this |
||
115 | */ |
||
116 | public function fromResponse($request) |
||
138 | |||
139 | /** |
||
140 | * @return array |
||
141 | */ |
||
142 | public function getCollection() |
||
143 | { |
||
144 | return $this->collection; |
||
145 | } |
||
146 | |||
147 | /** |
||
148 | * @param array $collection |
||
149 | */ |
||
150 | public function setCollection($collection) |
||
154 | |||
155 | /** |
||
156 | * @return Account |
||
157 | */ |
||
158 | public function getAccount() |
||
162 | |||
163 | /** |
||
164 | * @param Account $account |
||
165 | */ |
||
166 | public function setAccount($account) |
||
170 | } |
||
171 |
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..