GenericEvent::offsetExists()

bool offsetExists(string $key) ArrayAccess has argument. Parameters string $key Array key Return Value bool

GenericEvent::offsetGet()

mixed offsetGet(string $key) ArrayAccess for argument getter. Parameters string $key Array key Return Value mixed Exceptions InvalidArgumentException If key does not exist in $this->args.

GenericEvent::offsetUnset()

offsetUnset(string $key) ArrayAccess for unset argument. Parameters string $key Array key

GenericEvent::setArgument()

GenericEvent setArgument(string $key, mixed $value) Add argument to event. Parameters string $key Argument name mixed $value Value Return Value GenericEvent

GenericEvent::hasArgument()

bool hasArgument(string $key) Has argument. Parameters string $key Key of arguments array Return Value bool

GenericEvent::getArgument()

mixed getArgument(string $key) Get argument by key. Parameters string $key Key Return Value mixed Contents of array key Exceptions InvalidArgumentException If key is not found.

GenericEvent

class GenericEvent extends Event implements ArrayAccess, IteratorAggregate Event encapsulation class. Encapsulates events thus decoupling the observer from the subject they encapsulate. Methods bool isPropagationStopped() Returns whether further event listeners should be triggered. from Event stopPropagation() Stops the propagation of the event to further event listeners. from Event __construct(mixed $subject = null, array $arguments = array()) Encapsulate an event with $subject

GenericEvent::getSubject()

mixed getSubject() Getter for subject property. Return Value mixed $subject The observer subject

GenericEvent::getIterator()

ArrayIterator getIterator() IteratorAggregate for iterating over the object like an array. Return Value ArrayIterator

GenericEvent::getArguments()

array getArguments() Getter for all arguments. Return Value array