__construct()
getName()
getParam()
getParams()
getTarget()
propagationIsStopped()
setName()
setParam()
setParams()
setTarget()
stopPropagation()
$name
$params
$stopPropagation
$target
Representation of an event
Encapsulates the target context and parameters passed, and provides some behavior for interacting with the event manager.
__construct(string $name, string | object $target, array | \ArrayAccess $params)
Accept a target and its parameters.
string
Event name
stringobject
array\ArrayAccess
getName() : string
string
getParam(string | int $name, mixed $default) : mixed
If the parameter does not exist, the $default value will be returned.
stringint
mixed
mixed
getParams() : array | object | \ArrayAccess
array
object
\ArrayAccess
getTarget() : string | object
This may be either an object, or the name of a static method.
string
object
propagationIsStopped() : bool
bool
setParam(string | int $name, mixed $value) : \Zend\EventManager\Event
setParams(array | \ArrayAccess | object $params) : \Zend\EventManager\Event
Overwrites parameters
array\ArrayAccessobject
\Zend\EventManager\Exception\InvalidArgumentException |
---|
stopPropagation(bool $flag) : void
bool
$name : string
$params : array | \ArrayAccess | object
$stopPropagation : bool
$target : string | object