RepeatedFieldIter
class RepeatedFieldIter implements Iterator (View source)
RepeatedFieldIter is used to iterate RepeatedField. It is also need for the foreach syntax.
Methods
Create iterator instance for RepeatedField.
Reset the status of the iterator
Return the element at the current position.
Return the current position.
Move to the next position.
Check whether there are more elements to iterate.
Details
__construct($container)
Create iterator instance for RepeatedField.
void
rewind()
Reset the status of the iterator
object
current()
Return the element at the current position.
int
key()
Return the current position.
void
next()
Move to the next position.
bool
valid()
Check whether there are more elements to iterate.