You are here

protected function GreaterThanOrEqualValidator::compareValues in Plug 7

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

lib/Symfony/validator/Symfony/Component/Validator/Constraints/GreaterThanOrEqualValidator.php, line 24

Class

GreaterThanOrEqualValidator
Validates values are greater than or equal to the previous (>=).

Namespace

Symfony\Component\Validator\Constraints

Code

protected function compareValues($value1, $value2) {
  return $value1 >= $value2;
}