You are here

protected function IdenticalToValidator::compareValues in Zircon Profile 8

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

Class

IdenticalToValidator
Validates values are identical (===).

Namespace

Symfony\Component\Validator\Constraints

Code

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