public static function setInstance(string $name, self $instance): void
    {
        self::$instances[$name] = $instance;
    }
public static function setInstance(string $name, self $instance): void
    {
        self::$instances[$name] = $instance;
    }
public static function setInstance ( string $ name , self $ instance ) : void { self :: $ instances [ $ name ] = $ instance ; }
Sets a names instance of the Event Dispatcher.
Sets a names instance of the Event Dispatcher .