public function guard($value, Field $field)
    {
        Assertion::integer($value, null, $field->getName());
        $intMin = $this->getMin();
        $intMax = $this->getMax();
        $min = NumberUtils::bound($field->getMin(), $intMin, $intMax);
        $max = NumberUtils::bound($field->getMax(), $intMin, $intMax);
        Assertion::range($value, $min, $max, null, $field->getName());
    }
public function guard($value, Field $field)
    {
        Assertion::integer($value, null, $field->getName());
        $intMin = $this->getMin();
        $intMax = $this->getMax();
        $min = NumberUtils::bound($field->getMin(), $intMin, $intMax);
        $max = NumberUtils::bound($field->getMax(), $intMin, $intMax);
        Assertion::range($value, $min, $max, null, $field->getName());
    }
{@inheritdoc}