| 1 | <?php |
||
| 4 | class PaginationIterator implements \IteratorAggregate, \Countable |
||
| 5 | { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * @var Traversable |
||
| 9 | */ |
||
| 10 | public $items; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var PaginationInterface |
||
| 14 | */ |
||
| 15 | public $pagination; |
||
| 16 | |||
| 17 | |||
| 18 | /** |
||
| 19 | * @param \Traversable $items |
||
| 20 | * @param PaginationInterface $pagination |
||
| 21 | */ |
||
| 22 | 8 | public function __construct( \Traversable $items, PaginationInterface $pagination) |
|
| 27 | |||
| 28 | |||
| 29 | 8 | public function getIterator() |
|
| 41 | |||
| 42 | |||
| 43 | 8 | public function count() |
|
| 48 | |||
| 49 | |||
| 50 | |||
| 51 | 4 | protected function calculateOffset() |
|
| 58 | |||
| 59 | |||
| 60 | 4 | protected function calculateLength() |
|
| 64 | } |
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..