src/Assert.php
public static function nonNegative($value, $keyword, $pointer)
    {
        if ($value >= 0) {
            return;
        }

        throw InvalidSchemaException::negativeValue(
            $value,
            $keyword,
            $pointer
        );
    }
public static function nonNegative($value, $keyword, $pointer)
    {
        if ($value >= 0) {
            return;
        }

        throw InvalidSchemaException::negativeValue(
            $value,
            $keyword,
            $pointer
        );
    }
public static function nonNegative ( $ value , $ keyword , $ pointer ) { if ( $ value >= 0 ) { return ; } throw InvalidSchemaException :: negativeValue ( $ value , $ keyword , $ pointer ) ; }
Validate an integer is non-negative.

@param integer $value
@param string  $keyword
@param string  $pointer
Validate an integer is non - negative .