1 | <?php |
||
12 | class Cursor implements \IteratorAggregate |
||
13 | { |
||
14 | /** @var Resource */ |
||
15 | private $resource; |
||
16 | private $params; |
||
17 | private $next_cursor = null; |
||
18 | private $current_index = 0; |
||
19 | private $total_count = 0; |
||
20 | /** @var array */ |
||
21 | private $collection; |
||
22 | /** @var TwitterAds */ |
||
23 | private $twitterAds; |
||
24 | |||
25 | public function __construct(/* @noinspection PhpUnnecessaryFullyQualifiedNameInspection */ |
||
33 | |||
34 | /** |
||
35 | * @return bool |
||
36 | */ |
||
37 | public function isExhausted() |
||
41 | |||
42 | /** |
||
43 | * @return integer |
||
44 | */ |
||
45 | public function count() |
||
49 | |||
50 | /** |
||
51 | * @return Resource |
||
52 | */ |
||
53 | public function first() |
||
57 | |||
58 | /** |
||
59 | * @return int |
||
60 | */ |
||
61 | public function fetched() |
||
65 | |||
66 | /** |
||
67 | * @return Resource | 0 |
||
68 | */ |
||
69 | public function next() |
||
86 | |||
87 | /** |
||
88 | * @param array $params |
||
89 | * @return Cursor |
||
90 | */ |
||
91 | public function fetchNext($params = []) |
||
114 | |||
115 | /** |
||
116 | * @param $request |
||
117 | * @return $this |
||
118 | */ |
||
119 | public function fromResponse($request) |
||
136 | |||
137 | /** |
||
138 | * {@inheritdoc} |
||
139 | */ |
||
140 | public function getIterator() |
||
144 | |||
145 | /** |
||
146 | * @return array |
||
147 | */ |
||
148 | public function getCollection() |
||
152 | |||
153 | /** |
||
154 | * @param array $collection |
||
155 | */ |
||
156 | public function setCollection($collection) |
||
160 | |||
161 | /** |
||
162 | * @return TwitterAds |
||
163 | */ |
||
164 | public function getTwitterAds() |
||
168 | |||
169 | /** |
||
170 | * @param TwitterAds $twitterAds |
||
171 | */ |
||
172 | public function setTwitterAds($twitterAds) |
||
176 | } |
||
177 |
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..