MapFieldIter is used to iterate MapField. It is also need for the foreach syntax.

CloneableInstantiableIterable
ImplementsIterator
Traversable
Methods
public __construct( $container, $key_type)
 
Create iterator instance for MapField.

  • ignore
public current()
 
Return the element at the current position.

  • return object The element at the current position.
public key()
 
Return the current key.

  • return object The current key.
public next()
 
Move to the next position.

  • return void
public rewind()
 
Reset the status of the iterator

  • return void
public valid()
 
Check whether there are more elements to iterate.

  • return bool True if there are more elements to iterate.
Properties
private $container
 


  • ignore
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only