public function removeListener(string $event, string $listenerId): void
    {
        // If the listener exists
        if ($this->hasListener($event, $listenerId)) {
            // Unset it
            unset(self::$events[$event][$listenerId]);
        }
    }
public function removeListener(string $event, string $listenerId): void
    {
        // If the listener exists
        if ($this->hasListener($event, $listenerId)) {
            // Unset it
            unset(self::$events[$event][$listenerId]);
        }
    }
public function removeListener ( string $ event , string $ listenerId ) : void { // If the listener exists if ( $ this -> hasListener ( $ event , $ listenerId ) ) { // Unset it unset ( self :: $ events [ $ event ] [ $ listenerId ] ) ; } }
Remove an event listener.

@param string $event      The event
@param string $listenerId The event listener

@return void
Remove an event listener .