1: | <?php declare(strict_types=1); |
2: | |
3: | namespace Salient\Core\Facade; |
4: | |
5: | use Salient\Core\AbstractFacade; |
6: | use Salient\Core\EventDispatcher; |
7: | |
8: | /** |
9: | * A facade for EventDispatcher |
10: | * |
11: | * @method static object dispatch(object $event) Dispatch an event to listeners registered to receive it (see {@see EventDispatcher::dispatch()}) |
12: | * @method static array<callable(object): mixed> getListenersForEvent(object $event) See {@see EventDispatcher::getListenersForEvent()} |
13: | * @method static int listen(callable(object): mixed $listener, string[]|string|null $event = null) Register an event listener with the dispatcher (see {@see EventDispatcher::listen()}) |
14: | * @method static void removeListener(int $id) Remove an event listener from the dispatcher (see {@see EventDispatcher::removeListener()}) |
15: | * |
16: | * @api |
17: | * |
18: | * @extends AbstractFacade<EventDispatcher> |
19: | * |
20: | * @generated |
21: | */ |
22: | final class Event extends AbstractFacade |
23: | { |
24: | /** |
25: | * @internal |
26: | */ |
27: | protected static function getService() |
28: | { |
29: | return EventDispatcher::class; |
30: | } |
31: | } |
32: |