public function removeCommand(string $name): void
    {
        if ($this->hasCommand($name)) {
            unset(
                self::$commands[self::$namedCommands[$name]],
                self::$namedCommands[$name]
            );
        }
    }
public function removeCommand(string $name): void
    {
        if ($this->hasCommand($name)) {
            unset(
                self::$commands[self::$namedCommands[$name]],
                self::$namedCommands[$name]
            );
        }
    }
public function removeCommand ( string $ name ) : void { if ( $ this -> hasCommand ( $ name ) ) { unset ( self :: $ commands [ self :: $ namedCommands [ $ name ] ] , self :: $ namedCommands [ $ name ] ) ; } }
Remove a command.

@param string $name The command name

@return void
Remove a command .