Specifies an object able to return the correct ConstraintValidatorInterface instance given a Constrain object.
Expanded class hierarchy of ConstraintValidatorFactoryInterface
All classes that implement ConstraintValidatorFactoryInterface
interface ConstraintValidatorFactoryInterface {
/**
* Given a Constraint, this returns the ConstraintValidatorInterface
* object that should be used to verify its validity.
*
* @param Constraint $constraint The source constraint
*
* @return ConstraintValidatorInterface
*/
public function getInstance(Constraint $constraint);
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConstraintValidatorFactoryInterface:: |
public | function | Given a Constraint, this returns the ConstraintValidatorInterface object that should be used to verify its validity. | 1 |