class Collection implements Iterator, Countable (View source)

Methods

TValue
current()

No description

void
next()

No description

TKey|null
key()

No description

bool
valid()

No description

void
rewind()

No description

int<0, max>
count()

No description

Details

TValue current()

No description

Return Value

TValue

Can return any type.

void next()

No description

Return Value

void

Any returned value is ignored.

TKey|null key()

No description

Return Value

TKey|null

TKey on success, or null on failure.

bool valid()

No description

Return Value

bool

The return value will be casted to boolean and then evaluated. Returns true on success or false on failure.

void rewind()

No description

Return Value

void

Any returned value is ignored.

int<0, max> count()

No description

Return Value

int<0, max>

The custom count as an integer.

The return value is cast to an integer.