Class ChunkedIterator
Pulls out chunks from an inner iterator and yields the chunks as arrays
- IteratorIterator implements Iterator, Traversable, OuterIterator
- Guzzle\Iterator\ChunkedIterator
Methods summary
-
public
__construct ( Traversable $iterator, int $chunkSize )
-
public
rewind ( )
-
public
next ( )
-
public
current ( )
-
public
valid ( )
Methods detail
Parameters
- $iterator
Traversable
$iterator Traversable iterator- $chunkSize
integer
$chunkSize Size to make each chunk
Throws
Overrides
Overrides
Overrides
Overrides
Overrides
Methods inherited from IteratorIterator
Magic methods summary
Properties summary
protected
integer
|
$chunkSize |
#
Size of each chunk |
protected
array
|
$chunk |
#
Current chunk |