Documentation

ChunkedIterator extends IteratorIterator
in package

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

Table of Contents

$chunk  : array<string|int, mixed>
$chunkSize  : int
__construct()  : mixed
current()  : mixed
next()  : mixed
rewind()  : mixed
valid()  : mixed

Properties

Methods

__construct()

public __construct(Traversable $iterator, int $chunkSize) : mixed
Parameters
$iterator : Traversable

Traversable iterator

$chunkSize : int

Size to make each chunk

Tags
throws
InvalidArgumentException
Return values
mixed

Search results