AppendIterator
class AppendIterator extends IteratorIterator (View source)
An Iterator that iterates over several iterators one after the other.
Methods
__construct()
Constructs an AppendIterator
Iterator|null
getInnerIterator()
Gets an inner iterator
void
rewind()
Rewinds the Iterator
bool
valid()
Checks validity of the current element
TKey|null
key()
Gets the current key
TValue
current()
Gets the current value
void
next()
Moves to the next element
int|null
getIteratorIndex()
Gets an index of iterators
getArrayIterator()
The getArrayIterator method
Details
__construct()
Constructs an AppendIterator
Iterator|null
getInnerIterator()
Gets an inner iterator
void
rewind()
Rewinds the Iterator
bool
valid()
Checks validity of the current element
TKey|null
key()
Gets the current key
TValue
current()
Gets the current value
void
next()
Moves to the next element
void
append(Iterator $iterator)
Appends an iterator
int|null
getIteratorIndex()
Gets an index of iterators
ArrayIterator
getArrayIterator()
The getArrayIterator method