| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | final public function handle(Event $event): void |
||
| 26 | { |
||
| 27 | if (!$this->isEventSupported($event)) { |
||
| 28 | throw new InvalidEventException(\sprintf( |
||
| 29 | 'Event must be a %s, %s given', |
||
| 30 | \implode('or ', $this->getSupportedEventTypes()), |
||
| 31 | \get_class($event) |
||
| 32 | )); |
||
| 33 | } |
||
| 34 | |||
| 35 | $this->handleEvent($event); |
||
| 36 | } |
||
| 37 | |||
| 74 |