Open Journal Systems  3.3.0
lib/vendor/symfony/event-dispatcher/Event.php
1 <?php
2 
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11 
13 
28 class Event
29 {
33  private $propagationStopped = false;
34 
38  private $dispatcher;
39 
43  private $name;
44 
52  public function isPropagationStopped()
53  {
54  return $this->propagationStopped;
55  }
56 
64  public function stopPropagation()
65  {
66  $this->propagationStopped = true;
67  }
68 
76  public function setDispatcher(EventDispatcherInterface $dispatcher)
77  {
78  $this->dispatcher = $dispatcher;
79  }
80 
88  public function getDispatcher()
89  {
90  @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);
91 
92  return $this->dispatcher;
93  }
94 
102  public function getName()
103  {
104  @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);
105 
106  return $this->name;
107  }
108 
116  public function setName($name)
117  {
118  $this->name = $name;
119  }
120 }
Symfony\Component\EventDispatcher\Event\getName
getName()
Definition: lib/vendor/symfony/event-dispatcher/Event.php:111
Symfony\Component\EventDispatcher\Event\setName
setName($name)
Definition: lib/vendor/symfony/event-dispatcher/Event.php:125
Symfony\Component\EventDispatcher\Event\getDispatcher
getDispatcher()
Definition: lib/vendor/symfony/event-dispatcher/Event.php:97
Symfony\Component\EventDispatcher
Definition: lib/vendor/symfony/event-dispatcher/ContainerAwareEventDispatcher.php:12
Symfony\Component\EventDispatcher\Event\setDispatcher
setDispatcher(EventDispatcherInterface $dispatcher)
Definition: lib/vendor/symfony/event-dispatcher/Event.php:85
Symfony\Component\EventDispatcher\Event\isPropagationStopped
isPropagationStopped()
Definition: lib/vendor/symfony/event-dispatcher/Event.php:61
Symfony\Component\EventDispatcher\Event\stopPropagation
stopPropagation()
Definition: lib/vendor/symfony/event-dispatcher/Event.php:73
Symfony\Component\EventDispatcher\EventDispatcherInterface
Definition: lib/vendor/symfony/event-dispatcher/EventDispatcherInterface.php:21
Symfony\Component\EventDispatcher\Event
Definition: lib/vendor/symfony/event-dispatcher/Event.php:28