You are here

interface ConstraintValidatorFactoryInterface in Plug 7

Specifies an object able to return the correct ConstraintValidatorInterface instance given a Constraint object.

Hierarchy

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\Validator
View 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

Namesort descending Modifiers Type Description Overrides
ConstraintValidatorFactoryInterface::getInstance public function Given a Constraint, this returns the ConstraintValidatorInterface object that should be used to verify its validity. 1