You are here

abstract protected function AbstractComparisonValidator::compareValues in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Constraints/AbstractComparisonValidator.php \Symfony\Component\Validator\Constraints\AbstractComparisonValidator::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

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

... See full list

File

vendor/symfony/validator/Constraints/AbstractComparisonValidator.php, line 82

Class

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

Namespace

Symfony\Component\Validator\Constraints

Code

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