You are here

abstract protected function AbstractComparisonValidator::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

1 call to AbstractComparisonValidator::compareValues()
AbstractComparisonValidator::validate in lib/Symfony/validator/Symfony/Component/Validator/Constraints/AbstractComparisonValidator.php
Checks if the passed value is valid.
8 methods override AbstractComparisonValidator::compareValues()
EqualToValidator::compareValues in lib/Symfony/validator/Symfony/Component/Validator/Constraints/EqualToValidator.php
Compares the two given values to find if their relationship is valid.
GreaterThanOrEqualValidator::compareValues in lib/Symfony/validator/Symfony/Component/Validator/Constraints/GreaterThanOrEqualValidator.php
Compares the two given values to find if their relationship is valid.
GreaterThanValidator::compareValues in lib/Symfony/validator/Symfony/Component/Validator/Constraints/GreaterThanValidator.php
Compares the two given values to find if their relationship is valid.
IdenticalToValidator::compareValues in lib/Symfony/validator/Symfony/Component/Validator/Constraints/IdenticalToValidator.php
Compares the two given values to find if their relationship is valid.
LessThanOrEqualValidator::compareValues in lib/Symfony/validator/Symfony/Component/Validator/Constraints/LessThanOrEqualValidator.php
Compares the two given values to find if their relationship is valid.

... See full list

File

lib/Symfony/validator/Symfony/Component/Validator/Constraints/AbstractComparisonValidator.php, line 73

Class

AbstractComparisonValidator
Provides a base class for the validation of property comparisons.

Namespace

Symfony\Component\Validator\Constraints

Code

protected abstract function compareValues($value1, $value2);