Zum Hauptinhalt springen

Zymba Documentation

Array.Iterator​

Text
object @Array.Iterator(@Base) {
construct(object $array) {}
hasMore(): bool {}
next(): object {}
reset(): $this {}
}

Array iterator prototype.

Prototype​

Base

Methods​

CODE
$this.construct(object $array): void
Parameters​
NameTypeValueDefault
arrayobject[]
CODE
$this.hasMore(): bool
Returns​
TypeValue
bool
CODE
$this.next(): object
Returns​
TypeValue
object[key: value]
null
CODE
$this.reset(): this
Returns​
TypeValue
$this