protected function LessThanOrEqualValidator::compareValues in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/validator/Constraints/LessThanOrEqualValidator.php \Symfony\Component\Validator\Constraints\LessThanOrEqualValidator::compareValues()
Compares the two given values to find if their relationship is valid.
Parameters
mixed $value1 The first value to compare:
mixed $value2 The second value to compare:
Return value
bool true if the relationship is valid, false otherwise
Overrides AbstractComparisonValidator::compareValues
File
- vendor/
symfony/ validator/ Constraints/ LessThanOrEqualValidator.php, line 24
Class
- LessThanOrEqualValidator
- Validates values are less than or equal to the previous (<=).
Namespace
Symfony\Component\Validator\ConstraintsCode
protected function compareValues($value1, $value2) {
return $value1 <= $value2;
}