public function remove(string $event): void
    {
        if ($this->has($event)) {
            unset(self::$events[$event]);
        }
    }
public function remove(string $event): void
    {
        if ($this->has($event)) {
            unset(self::$events[$event]);
        }
    }
public function remove ( string $ event ) : void { if ( $ this -> has ( $ event ) ) { unset ( self :: $ events [ $ event ] ) ; } }
Remove an event.

@param string $event The event

@return void
Remove an event .