Interface

Symfony\Component\Validator\ConstraintValidatorInterface

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 26
public initialize(ExecutionContextInterface $context)

Initializes the constraint validator.

Parameters

ExecutionContextInterface $context The current validation context

at line 36
public 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