public function getNumberOfRequiredArguments($includeBase = true)
    {
        Assert::boolean($includeBase, 'The parameter $includeBase must be a boolean. Got: %s');

        $arguments = $this->getArguments($includeBase);
        $count = 0;

        foreach ($arguments as $argument) {
            if (!$argument->isRequired()) {
                continue;
            }

            if ($argument->isMultiValued()) {
                return PHP_INT_MAX;
            }

            ++$count;
        }

        return $count;
    }
public function getNumberOfRequiredArguments($includeBase = true)
    {
        Assert::boolean($includeBase, 'The parameter $includeBase must be a boolean. Got: %s');

        $arguments = $this->getArguments($includeBase);
        $count = 0;

        foreach ($arguments as $argument) {
            if (!$argument->isRequired()) {
                continue;
            }

            if ($argument->isMultiValued()) {
                return PHP_INT_MAX;
            }

            ++$count;
        }

        return $count;
    }
public function getNumberOfRequiredArguments ( $ includeBase = true ) { Assert :: boolean ( $ includeBase , 'The parameter $includeBase must be a boolean. Got: %s' ) ; $ arguments = $ this -> getArguments ( $ includeBase ) ; $ count = 0 ; foreach ( $ arguments as $ argument ) { if ( ! $ argument -> isRequired ( ) ) { continue ; } if ( $ argument -> isMultiValued ( ) ) { return PHP_INT_MAX ; } ++ $ count ; } return $ count ; }
Returns the number of required arguments.

@param bool $includeBase Whether to include arguments in the base format
in the result.

@return int The number of required arguments.
Returns the number of required arguments .