src/Validator/Specific/Number.php
private function validateLowerThan(): bool
    {
        if ($this->options['max'] !== null) {
            if ($this->options['inclusive'] === false && $this->value >= $this->options['max']) {
                $this->setError(self::VALIDATOR_ERROR_NUMBER_MUST_BE_LOWER_THAN_MAX);
                return false;
            }

            if ($this->value > $this->options['max']) {
                $this->setError(self::VALIDATOR_ERROR_NUMBER_MUST_BE_LOWER_OR_EQUAL_TO_MAX);
                return false;
            }
        }
        return true;
    }
private function validateLowerThan(): bool
    {
        if ($this->options['max'] !== null) {
            if ($this->options['inclusive'] === false && $this->value >= $this->options['max']) {
                $this->setError(self::VALIDATOR_ERROR_NUMBER_MUST_BE_LOWER_THAN_MAX);
                return false;
            }

            if ($this->value > $this->options['max']) {
                $this->setError(self::VALIDATOR_ERROR_NUMBER_MUST_BE_LOWER_OR_EQUAL_TO_MAX);
                return false;
            }
        }
        return true;
    }
private function validateLowerThan ( ) : bool { if ( $ this -> options [ 'max' ] !== null ) { if ( $ this -> options [ 'inclusive' ] === false && $ this -> value >= $ this -> options [ 'max' ] ) { $ this -> setError ( self :: VALIDATOR_ERROR_NUMBER_MUST_BE_LOWER_THAN_MAX ) ; return false ; } if ( $ this -> value > $ this -> options [ 'max' ] ) { $ this -> setError ( self :: VALIDATOR_ERROR_NUMBER_MUST_BE_LOWER_OR_EQUAL_TO_MAX ) ; return false ; } } return true ; }
Checks whether number is lower than specified max number

@return bool
Checks whether number is lower than specified max number