public function getArgument($name)
    {
        $argument = $this->format->getArgument($name);

        if (array_key_exists($argument->getName(), $this->arguments)) {
            return $this->arguments[$argument->getName()];
        }

        return $argument->getDefaultValue();
    }
public function getArgument($name)
    {
        $argument = $this->format->getArgument($name);

        if (array_key_exists($argument->getName(), $this->arguments)) {
            return $this->arguments[$argument->getName()];
        }

        return $argument->getDefaultValue();
    }
public function getArgument ( $ name ) { $ argument = $ this -> format -> getArgument ( $ name ) ; if ( array_key_exists ( $ argument -> getName ( ) , $ this -> arguments ) ) { return $ this -> arguments [ $ argument -> getName ( ) ] ; } return $ argument -> getDefaultValue ( ) ; }
Returns the value of an argument.

If the argument is not set, the default value configured in the argument
format is returned.

@param string|int $name The argument name or its 0-based position in the
argument list.

@return mixed The value of the argument.

@throws NoSuchArgumentException If the argument does not exist.
Returns the value of an argument .