Conditions | 3 |
Paths | 4 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
31 | public function dispatch(object $event): void |
||
32 | 6 | { |
|
33 | foreach ($this->genericListeners as $listener) { |
||
34 | 6 | $this->notifyListener($listener, $event); |
|
35 | } |
||
36 | |||
37 | 19 | foreach ($this->specificListeners[$event::class] ?? [] as $listener) { |
|
38 | $this->notifyListener($listener, $event); |
||
39 | 19 | } |
|
47 |