123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <?php
- namespace Symfony\Component\EventDispatcher;
- class Event
- {
-
- private $propagationStopped = false;
-
- private $dispatcher;
-
- private $name;
-
- public function isPropagationStopped()
- {
- return $this->propagationStopped;
- }
-
- public function stopPropagation()
- {
- $this->propagationStopped = true;
- }
-
- public function setDispatcher(EventDispatcherInterface $dispatcher)
- {
- $this->dispatcher = $dispatcher;
- }
-
- public function getDispatcher()
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0. The event dispatcher instance can be received in the listener call instead.', E_USER_DEPRECATED);
- return $this->dispatcher;
- }
-
- public function getName()
- {
- @trigger_error('The '.__METHOD__.' method is deprecated since Symfony 2.4 and will be removed in 3.0. The event name can be received in the listener call instead.', E_USER_DEPRECATED);
- return $this->name;
- }
-
- public function setName($name)
- {
- $this->name = $name;
- }
- }
|