interface ConstraintValidatorFactoryInterface in Plug 7
Specifies an object able to return the correct ConstraintValidatorInterface instance given a Constraint object.
Hierarchy
- interface \Symfony\Component\Validator\ConstraintValidatorFactoryInterface
Expanded class hierarchy of ConstraintValidatorFactoryInterface
All classes that implement ConstraintValidatorFactoryInterface
2 files declare their use of ConstraintValidatorFactoryInterface
- RecursiveContextualValidator.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Validator/ RecursiveContextualValidator.php - RecursiveValidator.php in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Validator/ RecursiveValidator.php
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ConstraintValidatorFactoryInterface.php, line 18
Namespace
Symfony\Component\ValidatorView source
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);
}
Members
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 |