Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function notify(Listener $listener, Event $event): void |
||
13 | { |
||
14 | $eventClass = get_class($event); |
||
15 | $reflection = new \ReflectionObject($listener); |
||
16 | |||
17 | foreach ($reflection->getMethods(\ReflectionMethod::IS_PUBLIC) as $method) { |
||
18 | if ($this->supports($method, $eventClass)) { |
||
19 | $this->call($listener, $method->getName(), $event); |
||
|
|||
20 | } |
||
21 | } |
||
22 | } |
||
23 | |||
48 |