| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 31 | public function dispatch(object $event): object |
||
| 32 | { |
||
| 33 | if ($this->isPropagationStopped($event)) { |
||
| 34 | return $event; |
||
| 35 | } |
||
| 36 | |||
| 37 | foreach ($this->listenerProvider->getListenersForEvent($event) as $listener) { |
||
| 38 | $listener($event); |
||
| 39 | |||
| 40 | if ($this->isPropagationStopped($event)) { |
||
| 41 | break; |
||
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 45 | return $event; |
||
| 46 | } |
||
| 60 |