Conditions | 3 |
Paths | 4 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
36 | 33 | public function dispatch(object $event): void |
|
37 | { |
||
38 | 33 | foreach ($this->genericListeners as $listener) { |
|
39 | 20 | $this->notifyListener($listener, $event); |
|
40 | } |
||
41 | |||
42 | 33 | foreach ($this->specificListeners[get_class($event)] ?? [] as $listener) { |
|
43 | 6 | $this->notifyListener($listener, $event); |
|
44 | } |
||
52 |