Validates values aren't identical (!==).
@author Daniel Holmes <daniel@danielholmes.org>
Expanded class hierarchy of NotIdenticalToValidator
class NotIdenticalToValidator extends AbstractComparisonValidator {
/**
* @inheritDoc
*/
protected function compareValues($value1, $value2) {
return $value1 !== $value2;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AbstractComparisonValidator:: |
public | function |
Checks if the passed value is valid. Overrides ConstraintValidatorInterface:: |
|
AbstractComparisonValidator:: |
private | function | Returns a string representation of the value. | |
AbstractComparisonValidator:: |
private | function | Returns a string representation of the type of the value. | |
ConstraintValidator:: |
protected | property | ||
ConstraintValidator:: |
public | function |
Initializes the constraint validator. Overrides ConstraintValidatorInterface:: |
1 |
NotIdenticalToValidator:: |
protected | function |
@inheritDoc Overrides AbstractComparisonValidator:: |