interface ConstraintValidatorInterface in Plug 7
@author Bernhard Schussek <bschussek@gmail.com>
@api
Hierarchy
- interface \Symfony\Component\Validator\ConstraintValidatorInterface
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\ValidatorView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConstraintValidatorInterface:: |
public | function | Initializes the constraint validator. | 1 |
ConstraintValidatorInterface:: |
public | function | Checks if the passed value is valid. | 35 |