public function getArguments($includeDefaults = true)
    {
        $arguments = array();

        foreach ($this->format->getArguments() as $argument) {
            $name = $argument->getName();

            if (array_key_exists($name, $this->arguments)) {
                $arguments[$name] = $this->arguments[$name];
            } elseif ($includeDefaults) {
                $arguments[$name] = $argument->getDefaultValue();
            }
        }

        return $arguments;
    }
public function getArguments($includeDefaults = true)
    {
        $arguments = array();

        foreach ($this->format->getArguments() as $argument) {
            $name = $argument->getName();

            if (array_key_exists($name, $this->arguments)) {
                $arguments[$name] = $this->arguments[$name];
            } elseif ($includeDefaults) {
                $arguments[$name] = $argument->getDefaultValue();
            }
        }

        return $arguments;
    }
public function getArguments ( $ includeDefaults = true ) { $ arguments = array ( ) ; foreach ( $ this -> format -> getArguments ( ) as $ argument ) { $ name = $ argument -> getName ( ) ; if ( array_key_exists ( $ name , $ this -> arguments ) ) { $ arguments [ $ name ] = $ this -> arguments [ $ name ] ; } elseif ( $ includeDefaults ) { $ arguments [ $ name ] = $ argument -> getDefaultValue ( ) ; } } return $ arguments ; }
Returns the values of all arguments.

By default, this method also includes the default values of unset
arguments. You can disable this behavior by passing `false` for
`$includeDefaults`.

@param bool $includeDefaults Whether to return the default values for
arguments that were not set.

@return array The argument values.

@see getArgument()
Returns the values of all arguments .