Representation of an event
Encapsulates the target context and parameters passed, and provides some behavior for interacting with the event manager.
Constructor
Accept a target and its parameters.
Parameters: |
|
---|
Get the event target
This may be either an object, or the name of a static method.
Return type: | string|object |
---|
Set parameters
Overwrites parameters
Parameters: | array|ArrayAccess|object – |
---|---|
Return type: | Event |
Throws : | ExceptionInvalidArgumentException |
Get an individual parameter
If the parameter does not exist, the $default value will be returned.
Parameters: |
|
---|---|
Return type: | mixed |
Set the event target/context
Parameters: | null|string|object – |
---|---|
Return type: | Event |
Set an individual parameter to a value
Parameters: |
|
---|---|
Return type: | Event |