Symfony\Component\Validator\ConstraintValidatorInterface::validate
Checks if the passed value is valid.
Signature
public function validate(mixed
$value,
Constraint
$constraint )
Parameters
$value
— mixed- The value that should be validated
$constraint
— Symfony\Component\Validator\Constraint- The constraint for the validation