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
Table of Contents
Interfaces
- Iterator
Properties
- $current : array<string|int, mixed>|null
- $hydrator : AbstractHydrator
- $key : int
- $rewinded : bool
Methods
- __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
current()
public
current() : mixed
key()
public
key() : int
Return values
intnext()
Gets the next set of results.
public
next() : array<string|int, mixed>|false
Return values
array<string|int, mixed>|falserewind()
public
rewind() : void
Tags
valid()
public
valid() : bool