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