interface ConstraintValidatorInterface

Methods

initialize(ExecutionContextInterface $context)

Initializes the constraint validator.

validate(mixed $value, Constraint $constraint)

Checks if the passed value is valid.

Details

at line line 26
initialize(ExecutionContextInterface $context)

Initializes the constraint validator.

Parameters

ExecutionContextInterface $context The current validation context

at line line 34
validate(mixed $value, Constraint $constraint)

Checks if the passed value is valid.

Parameters

mixed $value The value that should be validated
Constraint $constraint The constraint for the validation