1 | <?php |
||
16 | class ChunkIterator extends ValuesIterator |
||
17 | { |
||
18 | /** |
||
19 | * Size of a chunk |
||
20 | * |
||
21 | * @var int |
||
22 | */ |
||
23 | private $size; |
||
24 | |||
25 | /** |
||
26 | * The original iterator to split into chunks. |
||
27 | * |
||
28 | * @var \Iterator |
||
29 | */ |
||
30 | private $innerIterator; |
||
31 | |||
32 | /** |
||
33 | * Constructor. |
||
34 | * |
||
35 | * @param \Traversable $iterator |
||
36 | * The iterator to split into chunks. |
||
37 | * @param int $size |
||
38 | * The size of each chunk. |
||
39 | */ |
||
40 | 3 | public function __construct(\Traversable $iterator, int $size) |
|
56 | |||
57 | /** |
||
58 | * Rewind original inner iterator, and recreate inner and outer iterator. |
||
59 | * |
||
60 | * @see Iterator::rewind() |
||
61 | */ |
||
62 | 3 | public function rewind() |
|
75 | |||
76 | /** |
||
77 | * Make sure that the inner iterator is positioned correctly, before skipping |
||
78 | * to next chunk. |
||
79 | * |
||
80 | * @see Iterator::next() |
||
81 | */ |
||
82 | 3 | public function next() |
|
94 | } |
||
95 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.