NoRewindIterator
class NoRewindIterator extends IteratorIterator (View source)
This iterator cannot be rewinded.
Methods
Iterator|null
getInnerIterator()
Get the inner iterator
void
rewind()
Prevents the rewind operation on the inner iterator.
bool
valid()
Validates the iterator
TKey|null
key()
Get the current key
TValue
current()
Get the current value
void
next()
Forward to the next element
Details
__construct(Traversable $iterator)
Construct a NoRewindIterator
Iterator|null
getInnerIterator()
Get the inner iterator
void
rewind()
Prevents the rewind operation on the inner iterator.
bool
valid()
Validates the iterator
TKey|null
key()
Get the current key
TValue
current()
Get the current value
void
next()
Forward to the next element