You are here

interface ConstraintValidatorInterface in Plug 7

@author Bernhard Schussek <bschussek@gmail.com>

@api

Hierarchy

Expanded class hierarchy of ConstraintValidatorInterface

All classes that implement ConstraintValidatorInterface

1 file declares its use of ConstraintValidatorInterface
AbstractConstraintValidatorTest.php in lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/AbstractConstraintValidatorTest.php

File

lib/Symfony/validator/Symfony/Component/Validator/ConstraintValidatorInterface.php, line 19

Namespace

Symfony\Component\Validator
View source
interface ConstraintValidatorInterface {

  /**
   * Initializes the constraint validator.
   *
   * @param ExecutionContextInterface $context The current validation context
   */
  public function initialize(ExecutionContextInterface $context);

  /**
   * Checks if the passed value is valid.
   *
   * @param mixed      $value      The value that should be validated
   * @param Constraint $constraint The constraint for the validation
   *
   * @api
   */
  public function validate($value, Constraint $constraint);

}

Members

Namesort descending Modifiers Type Description Overrides
ConstraintValidatorInterface::initialize public function Initializes the constraint validator. 1
ConstraintValidatorInterface::validate public function Checks if the passed value is valid. 35