You are here

public function GenericEvent::getIterator in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/event-dispatcher/GenericEvent.php \Symfony\Component\EventDispatcher\GenericEvent::getIterator()

IteratorAggregate for iterating over the object like an array.

Return value

\ArrayIterator

File

vendor/symfony/event-dispatcher/GenericEvent.php, line 182

Class

GenericEvent
Event encapsulation class.

Namespace

Symfony\Component\EventDispatcher

Code

public function getIterator() {
  return new \ArrayIterator($this->arguments);
}