RepeatedFieldIter is used to iterate RepeatedField. It is also need for the foreach syntax.
CloneableInstantiableIterable
- Implements
Iterator Traversable
Methods |
public __construct( $container) Create iterator instance for RepeatedField.
|
public current() Return the element at the current position.
|
public key() Return the current position.
|
public next() Move to the next position.
|
public rewind() Reset the status of the iterator
|
public valid() : bool Check whether there are more elements to iterate.
|
Properties |
private $container = NULL
|
private $position = NULL
|