class ResultIterator implements Iterator, Countable

External result set iterator.

Traits

Better OOP experience.

Methods

__construct(Result $result)

No description

void
rewind()

Rewinds the iterator to the first element.

mixed
key()

Returns the key of the current element.

mixed
current()

Returns the current element.

void
next()

Moves forward to next element.

bool
valid()

Checks if there is a current element after calls to rewind() or next().

int
count()

Required by the Countable interface.

Details

at line 30
__construct(Result $result)

Parameters

Result $result

at line 39
void rewind()

Rewinds the iterator to the first element.

Return Value

void

at line 51
mixed key()

Returns the key of the current element.

Return Value

mixed

at line 61
mixed current()

Returns the current element.

Return Value

mixed

at line 70
void next()

Moves forward to next element.

Return Value

void

at line 80
bool valid()

Checks if there is a current element after calls to rewind() or next().

Return Value

bool

at line 89
int count()

Required by the Countable interface.

Return Value

int