ReadWindow
Read onlyYes
FinalYes
Properties
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
$limit
public
int|null
$limit
= null
$offset
public
int
$offset
= 0
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
reached()
public
reached(int $yielded) : bool
Parameters
- $yielded : int
Return values
boolskip()
$rows without what the offset still skips after $skipped rows.
public
skip(Rows $rows, int $skipped) : Rows
Parameters
- $rows : Rows
- $skipped : int
Return values
Rowstrim()
$rows cut to what the limit still wants after $yielded rows.
public
trim(Rows $rows, int $yielded) : Rows
Parameters
- $rows : Rows
- $yielded : int