| Total Complexity | 2 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | class EventDispatcherHelper { |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Dispatch an event. |
||
| 27 | * |
||
| 28 | * @param EventDispatcherInterface|null $eventDispatcher The event dispatcher. |
||
| 29 | * @param Event $event The event. |
||
| 30 | * @param string|null $eventName The event name. |
||
| 31 | * @return Event Returns the event. |
||
| 32 | */ |
||
| 33 | public static function dispatch(?EventDispatcherInterface $eventDispatcher, Event $event, string $eventName = null): Event { |
||
| 37 |