ConstraintValidatorFactory
in package
implements
ConstraintValidatorFactoryInterface
Default implementation of the ConstraintValidatorFactoryInterface.
This enforces the convention that the validatedBy() method on any Constraint will return the class name of the ConstraintValidator that should validate the Constraint.
Tags
Table of Contents
Interfaces
- ConstraintValidatorFactoryInterface
- Specifies an object able to return the correct ConstraintValidatorInterface instance given a Constraint object.
Properties
- $validators : mixed
Methods
- __construct() : mixed
- getInstance() : ConstraintValidatorInterface
- Given a Constraint, this returns the ConstraintValidatorInterface object that should be used to verify its validity.
Properties
$validators
protected
mixed
$validators
= []
Methods
__construct()
public
__construct() : mixed
getInstance()
Given a Constraint, this returns the ConstraintValidatorInterface object that should be used to verify its validity.
public
getInstance(Constraint $constraint) : ConstraintValidatorInterface
Parameters
- $constraint : Constraint