Flow PHP

BoundedRead

Read onlyYes
FinalYes

Methods

__construct()  : mixed
followedBy()  : Generator<string|int, Rows>
read()  : Rows>, bool}
Reads $rows while the process stays under the limit; $rows is left at the first batch not read.

Methods

followedBy()

public static followedBy(array<int, Rows> $read, Generator<string|int, Rows> $rest) : Generator<string|int, Rows>
Parameters
$read : array<int, Rows>
$rest : Generator<string|int, Rows>
Return values
Generator<string|int, Rows> —

the batches already read, then what is left of $rest

read()

Reads $rows while the process stays under the limit; $rows is left at the first batch not read.

public read(Generator<string|int, Rows> $rows) : Rows>, bool}
Parameters
$rows : Generator<string|int, Rows>
Return values
Rows>, bool} —

the batches read, and whether $rows ended within the limit

On this page

Search results