IterableResult
in package
implements
Iterator
Represents a result structure that can be iterated over, hydrating row-by-row during the iteration. An IterableResult is obtained by AbstractHydrator#iterate().
Tags
Interfaces, Classes, Traits and Enums
- Iterator
Table of Contents
- $_current : array<string|int, mixed>|null
- $_hydrator : AbstractHydrator
- $_key : int
- $_rewinded : bool
- __construct() : mixed
- current() : mixed
- key() : int
- next() : array<string|int, mixed>|false
- Gets the next set of results.
- rewind() : void
- valid() : bool
Properties
$_current
private
array<string|int, mixed>|null
$_current
= null
$_hydrator
private
AbstractHydrator
$_hydrator
$_key
private
int
$_key
= -1
$_rewinded
private
bool
$_rewinded
= false
Methods
__construct()
public
__construct(AbstractHydrator $hydrator) : mixed
Parameters
- $hydrator : AbstractHydrator
Return values
mixed —current()
public
current() : mixed
Return values
mixed —key()
public
key() : int
Return values
int —next()
Gets the next set of results.
public
next() : array<string|int, mixed>|false
Return values
array<string|int, mixed>|false —rewind()
public
rewind() : void
Tags
Return values
void —valid()
public
valid() : bool