ConstraintValidatorInterface
in
Tags
Table of Contents
Methods
- 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
validate()
Checks if the passed value is valid.
public
validate(mixed $value, Constraint $constraint) : mixed
Parameters
- $value : mixed
- $constraint : Constraint