Flow PHP

ReadWindow

Read onlyYes
FinalYes

Properties

$limit  : int|null
$offset  : int

Methods

__construct()  : mixed
reached()  : bool
skip()  : Rows
$rows without what the offset still skips after $skipped rows.
trim()  : Rows
$rows cut to what the limit still wants after $yielded rows.

Properties

Methods

__construct()

public __construct([int $offset = 0 ][, null|int $limit = null ]) : mixed
Parameters
$offset : int = 0

rows still to skip

$limit : null|int = null

rows still wanted, null for all of them

Tags
throws
InvalidArgumentException

reached()

public reached(int $yielded) : bool
Parameters
$yielded : int
Return values
bool

skip()

$rows without what the offset still skips after $skipped rows.

public skip(Rows $rows, int $skipped) : Rows
Parameters
$rows : Rows
$skipped : int
Return values
Rows

trim()

$rows cut to what the limit still wants after $yielded rows.

public trim(Rows $rows, int $yielded) : Rows
Parameters
$rows : Rows
$yielded : int
Return values
Rows
On this page

Search results