GraphQL\Validator\Rules\AbstractQuerySecurity::checkIfGreaterOrEqualToZero PHP Метод

checkIfGreaterOrEqualToZero() защищенный Метод

check if equal to 0 no check is done. Must be greater or equal to 0.
protected checkIfGreaterOrEqualToZero ( $name, $value )
$value
    protected function checkIfGreaterOrEqualToZero($name, $value)
    {
        if ($value < 0) {
            throw new \InvalidArgumentException(sprintf('$%s argument must be greater or equal to 0.', $name));
        }
    }