3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
10 namespace Zend\EventManager
;
15 * Representation of an event
17 interface EventInterface
24 public function getName();
27 * Get target/context from which event was triggered
29 * @return null|string|object
31 public function getTarget();
34 * Get parameters passed to the event
36 * @return array|ArrayAccess
38 public function getParams();
41 * Get a single parameter by name
44 * @param mixed $default Default value to return if parameter does not exist
47 public function getParam($name, $default = null);
55 public function setName($name);
58 * Set the event target/context
60 * @param null|string|object $target
63 public function setTarget($target);
66 * Set event parameters
68 * @param string $params
71 public function setParams($params);
74 * Set a single parameter by key
80 public function setParam($name, $value);
83 * Indicate whether or not the parent EventManagerInterface should stop propagating events
88 public function stopPropagation($flag = true);
91 * Has this event indicated event propagation should stop?
95 public function propagationIsStopped();