Copied!

RepeatedFieldIter is used to iterate RepeatedField. It is also need for the foreach syntax.

CloneableInstantiableIterable
Methods
public __construct( $container)
 

Create iterator instance for RepeatedField.

  • param array $container
  • ignore
public current()
 

Return the element at the current position.

  • return object The element at the current position.
  • todo need to add return type mixed (require update php version to 8.0)
  • attribute ReturnTypeWillChange
public key()
 

Return the current position.

  • return int The current position.
  • todo need to add return type mixed (require update php version to 8.0)
  • attribute ReturnTypeWillChange
public next()
 

Move to the next position.

  • return void
  • todo need to add return type void (require update php version to 7.1)
  • attribute ReturnTypeWillChange
public rewind()
 

Reset the status of the iterator

  • return void
  • todo need to add return type void (require update php version to 7.1)
  • attribute ReturnTypeWillChange
public valid() : bool
 

Check whether there are more elements to iterate.

  • return bool True if there are more elements to iterate.
Properties
private $container = NULL
 
  • ignore
private $position = NULL
 
  • ignore
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration