src/Type/BigIntType.php
public function guard($value, Field $field)
    {
        /** @var BigNumber $value */
        Assertion::isInstanceOf($value, BigNumber::class, null, $field->getName());
        Assertion::true(
            !$value->isNegative(),
            sprintf('Field [%s] cannot be negative.', $field->getName()),
            $field->getName()
        );
        Assertion::true(
            $value->isLessThanOrEqualTo('18446744073709551615'),
            sprintf('Field [%s] cannot be greater than [18446744073709551615].', $field->getName()),
            $field->getName()
        );
    }
public function guard($value, Field $field)
    {
        /** @var BigNumber $value */
        Assertion::isInstanceOf($value, BigNumber::class, null, $field->getName());
        Assertion::true(
            !$value->isNegative(),
            sprintf('Field [%s] cannot be negative.', $field->getName()),
            $field->getName()
        );
        Assertion::true(
            $value->isLessThanOrEqualTo('18446744073709551615'),
            sprintf('Field [%s] cannot be greater than [18446744073709551615].', $field->getName()),
            $field->getName()
        );
    }
public function guard ( $ value , Field $ field ) { /** @var BigNumber $value */ Assertion :: isInstanceOf ( $ value , BigNumber :: class , null , $ field -> getName ( ) ) ; Assertion :: true ( ! $ value -> isNegative ( ) , sprintf ( 'Field [%s] cannot be negative.' , $ field -> getName ( ) ) , $ field -> getName ( ) ) ; Assertion :: true ( $ value -> isLessThanOrEqualTo ( '18446744073709551615' ) , sprintf ( 'Field [%s] cannot be greater than [18446744073709551615].' , $ field -> getName ( ) ) , $ field -> getName ( ) ) ; }
{@inheritdoc}
{