$subject
$subject :
Event encapsulation class.
Encapsulates events thus decoupling the observer from the subject they encapsulate.
$dispatcher : \Symfony\Component\EventDispatcher\EventDispatcherInterface
setDispatcher(\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher)
Stores the EventDispatcher that dispatches this Event.
\Symfony\Component\EventDispatcher\EventDispatcherInterface | $dispatcher |
getDispatcher() : \Symfony\Component\EventDispatcher\EventDispatcherInterface
Returns the EventDispatcher that dispatches this Event.
None found |
None found |
setName(string $name)
Sets the event's name property.
string | $name | The event name |
None found |
__construct(mixed $subject = null, array $arguments = array())
Encapsulate an event with $subject and $args.
mixed | $subject | The subject of the event, usually an object or a callable |
array | $arguments | Arguments to store in the event |
None found |
None found |
getArgument(string $key) : mixed
Get argument by key.
string | $key | Key |
if key is not found
Contents of array key
None found |
setArgument(string $key, mixed $value) : $this
Add argument to event.
string | $key | Argument name |
mixed | $value | Value |
None found |
None found |
setArguments(array $args = array()) : $this
Set args property.
array | $args | Arguments |
None found |
hasArgument(string $key) : boolean
Has argument.
string | $key | Key of arguments array |
None found |
offsetGet(string $key) : mixed
ArrayAccess for argument getter.
string | $key | Array key |
if key does not exist in $this->args
None found |
offsetSet(string $key, mixed $value)
ArrayAccess for argument setter.
string | $key | Array key to set |
mixed | $value | Value |
None found |
offsetUnset(string $key)
ArrayAccess for unset argument.
string | $key | Array key |
None found |
offsetExists(string $key) : boolean
ArrayAccess has argument.
string | $key | Array key |
None found |
getIterator() : \ArrayIterator
IteratorAggregate for iterating over the object like an array.
None found |