Class Guzzle\Iterator\ChunkedIterator

InheritanceGuzzle\Iterator\ChunkedIterator » IteratorIterator

Pulls out chunks from an inner iterator and yields the chunks as arrays

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$chunk array Current chunk Guzzle\Iterator\ChunkedIterator
$chunkSize int Size of each chunk Guzzle\Iterator\ChunkedIterator

Property Details

$chunk protected property

Current chunk

protected array $chunk null
$chunkSize protected property

Size of each chunk

protected int $chunkSize null

Method Details

__construct() public method

public void __construct ( Traversable $iterator, $chunkSize )
$iterator Traversable

Traversable iterator

$chunkSize int

Size to make each chunk

throws InvalidArgumentException
current() public method

public void current ( )
next() public method

public void next ( )
rewind() public method

public void rewind ( )
valid() public method

public void valid ( )