ConstraintValidatorInterface
in
Tags
Table of Contents
- initialize() : mixed
- Initializes the constraint validator.
- validate() : mixed
- Checks if the passed value is valid.
Methods
initialize()
Initializes the constraint validator.
public
initialize(ExecutionContextInterface $context) : mixed
Parameters
- $context : ExecutionContextInterface
Return values
mixed —validate()
Checks if the passed value is valid.
public
validate(mixed $value, Constraint $constraint) : mixed
Parameters
- $value : mixed
-
The value that should be validated
- $constraint : Constraint