Metabor\NamedCollection::getIterator PHP Method

getIterator() public method

See also: IteratorAggregate::getIterator()
public getIterator ( )
    public function getIterator()
    {
        return new \ArrayIterator($this->collection);
    }

Usage Example

 /**
  *
  * @see MetaborStd\Statemachine.StateCollectionInterface::getStates()
  */
 public function getStates()
 {
     return $this->states->getIterator();
 }