Encapsulates the target context and parameters passed, and provides some
behavior for interacting with the event manager.
Methods
Constructor
__construct(string $name, \Zend\Cache\Storage\StorageInterface $storage, \ArrayObject $params, mixed $result, \Exception $exception)
Accept a target and its parameters.
Parameters
$name
string
$result
mixed
Get the exception to be thrown
getException() : \Exception
Get event name
getName() : string
Inherited
inherited_from |
\Zend\EventManager\Event::getName() |
inherited_from |
\Zend\Cache\Storage\Event::getName() |
inherited_from |
\Zend\Cache\Storage\PostEvent::getName() |
Returns
string
Get an individual parameter
getParam(string | int $name, mixed $default) : mixed
Inherited
If the parameter does not exist, the $default value will be returned.
inherited_from |
\Zend\EventManager\Event::getParam() |
inherited_from |
\Zend\Cache\Storage\Event::getParam() |
inherited_from |
\Zend\Cache\Storage\PostEvent::getParam() |
Parameters
$name
stringint
$default
mixed
Returns
mixed
Get all parameters
getParams() : array | object | \ArrayAccess
Inherited
inherited_from |
\Zend\EventManager\Event::getParams() |
inherited_from |
\Zend\Cache\Storage\Event::getParams() |
inherited_from |
\Zend\Cache\Storage\PostEvent::getParams() |
Returns
array
object
\ArrayAccess
Get the result/return value
getResult() : mixed
Inherited
inherited_from |
\Zend\Cache\Storage\PostEvent::getResult() |
Returns
mixed
Alias of getTarget
getStorage() : \Zend\Cache\Storage\StorageInterface
Inherited
inherited_from |
\Zend\Cache\Storage\Event::getStorage() |
inherited_from |
\Zend\Cache\Storage\PostEvent::getStorage() |
Returns
Get the event target
getTarget() : string | object
Inherited
This may be either an object, or the name of a static method.
inherited_from |
\Zend\EventManager\Event::getTarget() |
inherited_from |
\Zend\Cache\Storage\Event::getTarget() |
inherited_from |
\Zend\Cache\Storage\PostEvent::getTarget() |
Returns
string
object
Throw the exception or use the result
getThrowException() : bool
Is propagation stopped?
propagationIsStopped() : bool
Inherited
inherited_from |
\Zend\EventManager\Event::propagationIsStopped() |
inherited_from |
\Zend\Cache\Storage\Event::propagationIsStopped() |
inherited_from |
\Zend\Cache\Storage\PostEvent::propagationIsStopped() |
Returns
bool
Set the event name
setName(string $name) : \Zend\EventManager\Event
Inherited
inherited_from |
\Zend\EventManager\Event::setName() |
inherited_from |
\Zend\Cache\Storage\Event::setName() |
inherited_from |
\Zend\Cache\Storage\PostEvent::setName() |
Parameters
$name
string
Returns
Set an individual parameter to a value
setParam(string | int $name, mixed $value) : \Zend\EventManager\Event
Inherited
inherited_from |
\Zend\EventManager\Event::setParam() |
inherited_from |
\Zend\Cache\Storage\Event::setParam() |
inherited_from |
\Zend\Cache\Storage\PostEvent::setParam() |
Parameters
$name
stringint
$value
mixed
Returns
Set parameters
setParams(array | \ArrayAccess | object $params) : \Zend\EventManager\Event
Inherited
Overwrites parameters
inherited_from |
\Zend\EventManager\Event::setParams() |
inherited_from |
\Zend\Cache\Storage\Event::setParams() |
inherited_from |
\Zend\Cache\Storage\PostEvent::setParams() |
Parameters
$params
array\ArrayAccessobject
Exceptions
Returns
Set the result/return value
setResult(mixed $value) : \Zend\Cache\Storage\PostEvent
Inherited
inherited_from |
\Zend\Cache\Storage\PostEvent::setResult() |
Parameters
$value
mixed
Returns
Alias of setTarget
setStorage(\Zend\Cache\Storage\StorageInterface $storage) : \Zend\Cache\Storage\Event
Inherited
see |
\Zend\EventManager\Event::setTarget() |
inherited_from |
\Zend\Cache\Storage\Event::setStorage() |
inherited_from |
\Zend\Cache\Storage\PostEvent::setStorage() |
Parameters
Returns
Stop further event propagation
stopPropagation(bool $flag) : void
Inherited
inherited_from |
\Zend\EventManager\Event::stopPropagation() |
inherited_from |
\Zend\Cache\Storage\Event::stopPropagation() |
inherited_from |
\Zend\Cache\Storage\PostEvent::stopPropagation() |
Parameters
$flag
bool
Properties
The exception to be thrown
$exception : \Exception
<p>Event name</p>
$name : string
Inherited
inherited_from |
\Zend\EventManager\Event::$$name |
inherited_from |
\Zend\Cache\Storage\Event::$$name |
inherited_from |
\Zend\Cache\Storage\PostEvent::$$name |
<p>The event parameters</p>
$params : array | \ArrayAccess | object
Inherited
inherited_from |
\Zend\EventManager\Event::$$params |
inherited_from |
\Zend\Cache\Storage\Event::$$params |
inherited_from |
\Zend\Cache\Storage\PostEvent::$$params |
The result/return value
$result : mixed
Inherited
inherited_from |
\Zend\Cache\Storage\PostEvent::$$result |
<p>Whether or not to stop propagation</p>
$stopPropagation : bool
Inherited
inherited_from |
\Zend\EventManager\Event::$$stopPropagation |
inherited_from |
\Zend\Cache\Storage\Event::$$stopPropagation |
inherited_from |
\Zend\Cache\Storage\PostEvent::$$stopPropagation |
<p>The event target</p>
$target : string | object
Inherited
inherited_from |
\Zend\EventManager\Event::$$target |
inherited_from |
\Zend\Cache\Storage\Event::$$target |
inherited_from |
\Zend\Cache\Storage\PostEvent::$$target |
Throw the exception or use the result
$throwException : bool