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
Interfaces, Classes, Traits and Enums
- ConstraintValidatorFactoryInterface
- Specifies an object able to return the correct ConstraintValidatorInterface instance given a Constraint object.
Table of Contents
- $validators : mixed
- __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
Return values
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