| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | final class SymfonyEventDispatcher implements EventDispatcherInterface |
||
| 11 | { |
||
| 12 | 49 | public function __construct(private PsrEventDispatcherInterface $dispatcher) |
|
| 14 | 49 | } |
|
| 15 | |||
| 16 | /** |
||
| 17 | * Dispatches an event to all registered listeners. |
||
| 18 | * |
||
| 19 | * @psalm-template T as object |
||
| 20 | * |
||
| 21 | * @psalm-param T $event |
||
| 22 | * |
||
| 23 | * @psalm-return T |
||
| 24 | */ |
||
| 25 | 5 | public function dispatch(object $event, string $eventName = null): object |
|
| 31 |