Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Validator; Chris@0: Chris@0: /** Chris@0: * Specifies an object able to return the correct ConstraintValidatorInterface Chris@0: * instance given a Constraint object. Chris@0: */ Chris@0: interface ConstraintValidatorFactoryInterface Chris@0: { Chris@0: /** Chris@0: * Given a Constraint, this returns the ConstraintValidatorInterface Chris@0: * object that should be used to verify its validity. Chris@0: * Chris@0: * @return ConstraintValidatorInterface Chris@0: */ Chris@0: public function getInstance(Constraint $constraint); Chris@0: }