public function hasArgument($name, $includeBase = true)
    {
        if (!is_int($name)) {
            Assert::string($name, 'The argument name must be a string or an integer. Got: %s');
            Assert::notEmpty($name, 'The argument name must not be empty.');
        }

        Assert::boolean($includeBase, 'The parameter $includeBase must be a boolean. Got: %s');

        $arguments = is_int($name)
            ? array_values($this->getArguments($includeBase))
            : $this->getArguments($includeBase);

        return isset($arguments[$name]);
    }
public function hasArgument($name, $includeBase = true)
    {
        if (!is_int($name)) {
            Assert::string($name, 'The argument name must be a string or an integer. Got: %s');
            Assert::notEmpty($name, 'The argument name must not be empty.');
        }

        Assert::boolean($includeBase, 'The parameter $includeBase must be a boolean. Got: %s');

        $arguments = is_int($name)
            ? array_values($this->getArguments($includeBase))
            : $this->getArguments($includeBase);

        return isset($arguments[$name]);
    }
public function hasArgument ( $ name , $ includeBase = true ) { if ( ! is_int ( $ name ) ) { Assert :: string ( $ name , 'The argument name must be a string or an integer. Got: %s' ) ; Assert :: notEmpty ( $ name , 'The argument name must not be empty.' ) ; } Assert :: boolean ( $ includeBase , 'The parameter $includeBase must be a boolean. Got: %s' ) ; $ arguments = is_int ( $ name ) ? array_values ( $ this -> getArguments ( $ includeBase ) ) : $ this -> getArguments ( $ includeBase ) ; return isset ( $ arguments [ $ name ] ) ; }
Returns whether the format contains a specific argument.

You can either pass the name of the argument or the 0-based position of
the argument.

@param string|int $name        The argument name or its 0-based position
in the argument list.
@param bool       $includeBase Whether to include arguments in the base
format in the search.

@return bool Returns `true` if the argument with the given name or
position could be found and `false` otherwise.
Returns whether the format contains a specific argument .