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

            if ($this->value < $this->options['min']) {
                $this->setError(self::VALIDATOR_ERROR_NUMBER_MUST_BE_HIGHER_OR_EQUAL_TO_MIN);
                return false;
            }
        }
        return true;
    }
private function validateGreaterThan(): bool
    {
        if ($this->options['min'] !== null) {
            if ($this->options['inclusive'] === false && $this->value <= $this->options['min']) {
                $this->setError(self::VALIDATOR_ERROR_NUMBER_MUST_BE_HIGHER_THAN_MIN);
                return false;
            }

            if ($this->value < $this->options['min']) {
                $this->setError(self::VALIDATOR_ERROR_NUMBER_MUST_BE_HIGHER_OR_EQUAL_TO_MIN);
                return false;
            }
        }
        return true;
    }
private function validateGreaterThan ( ) : bool { if ( $ this -> options [ 'min' ] !== null ) { if ( $ this -> options [ 'inclusive' ] === false && $ this -> value <= $ this -> options [ 'min' ] ) { $ this -> setError ( self :: VALIDATOR_ERROR_NUMBER_MUST_BE_HIGHER_THAN_MIN ) ; return false ; } if ( $ this -> value < $ this -> options [ 'min' ] ) { $ this -> setError ( self :: VALIDATOR_ERROR_NUMBER_MUST_BE_HIGHER_OR_EQUAL_TO_MIN ) ; return false ; } } return true ; }
Checks whether number is greater than specified min number

@return bool
Checks whether number is greater than specified min number