| 1 | <?php |
||
| 5 | class EventDispatcher implements EventDispatcherInterface, ContainsListenersInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var callable[][] |
||
| 9 | */ |
||
| 10 | private $listeners = []; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @inheritdoc |
||
| 14 | */ |
||
| 15 | public function dispatch($event) |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @inheritdoc |
||
| 26 | */ |
||
| 27 | public function addListener($eventName, callable $listener) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @inheritdoc |
||
| 34 | */ |
||
| 35 | public function getListeners($eventName) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @inheritdoc |
||
| 46 | */ |
||
| 47 | public function hasListeners($eventName) |
||
| 51 | } |