public function get(string $name) : ICommand
    {
        if (!$this->has($name)) {
            throw new InvalidArgumentException("No command with name \"$name\" exists");
        }

        return $this->commands[$name];
    }
public function get(string $name) : ICommand
    {
        if (!$this->has($name)) {
            throw new InvalidArgumentException("No command with name \"$name\" exists");
        }

        return $this->commands[$name];
    }
public function get ( string $ name ) : ICommand { if ( ! $ this -> has ( $ name ) ) { throw new InvalidArgumentException ( "No command with name \"$name\" exists" ) ; } return $ this -> commands [ $ name ] ; }
Gets the command with the input name

@param string $name The name of the command to get
@return ICommand The command
@throws InvalidArgumentException Thrown if no command with the input name exists
Gets the command with the input name