Total Complexity | 8 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
22 | $event = new class() implements EventDispatcherInterface { |
||
23 | public function addListener(string $eventName, $listener, int $priority = 0) |
||
24 | { |
||
25 | } |
||
26 | |||
27 | public function addSubscriber(EventSubscriberInterface $subscriber) |
||
28 | { |
||
29 | } |
||
30 | |||
31 | public function removeListener(string $eventName, $listener) |
||
33 | } |
||
34 | |||
35 | public function removeSubscriber(EventSubscriberInterface $subscriber) |
||
36 | { |
||
37 | } |
||
38 | |||
39 | public function getListeners(string $eventName = null) |
||
40 | { |
||
41 | } |
||
42 | |||
43 | public function dispatch(object $event, string $eventName = null): object |
||
44 | { |
||
45 | return $event; |
||
46 | } |
||
47 | |||
48 | public function getListenerPriority(string $eventName, $listener) |
||
49 | { |
||
50 | } |
||
51 | |||
52 | public function hasListeners(string $eventName = null) |
||
54 | } |
||
55 | }; |
||
56 | |||
57 | if (class_exists(EventDispatcher::class)) { |
||
58 | $event = Pay::get(EventDispatcher::class); |
||
59 | } |
||
60 | |||
64 |