EventDispatcherInterface.php
2 years ago
ListenerProviderInterface.php
2 years ago
StoppableEventInterface.php
2 years ago
EventDispatcherInterface.php
22 lines
| 1 | <?php |
| 2 | |
| 3 | declare (strict_types=1); |
| 4 | namespace Matomo\Dependencies\Psr\EventDispatcher; |
| 5 | |
| 6 | /** |
| 7 | * Defines a dispatcher for events. |
| 8 | */ |
| 9 | interface EventDispatcherInterface |
| 10 | { |
| 11 | /** |
| 12 | * Provide all relevant listeners with an event to process. |
| 13 | * |
| 14 | * @param object $event |
| 15 | * The object to process. |
| 16 | * |
| 17 | * @return object |
| 18 | * The Event that was passed, now modified by listeners. |
| 19 | */ |
| 20 | public function dispatch(object $event); |
| 21 | } |
| 22 |