| 1 | <?php  | 
            ||
| 10 | class EventManager  | 
            ||
| 11 | { | 
            ||
| 12 | /**  | 
            ||
| 13 | * @var array  | 
            ||
| 14 | */  | 
            ||
| 15 | private static $dispatchers = [];  | 
            ||
| 16 | |||
| 17 | /**  | 
            ||
| 18 | * Gets the event dispatcher.  | 
            ||
| 19 | */  | 
            ||
| 20 | public static function getDispatcher(string $class): EventDispatcher  | 
            ||
| 28 | |||
| 29 | /**  | 
            ||
| 30 | * Resets the event dispatcher for a given class.  | 
            ||
| 31 | */  | 
            ||
| 32 | public static function reset(string $class): void  | 
            ||
| 38 | }  | 
            ||
| 39 |