Method | Description | |
---|---|---|
__construct ( Symfony\Component\Validator\Validator\ValidatorInterface $validator, mixed $root, Symfony\Component\Translation\TranslatorInterface $translator, string | null $translationDomain = null ) | Creates a new execution context. | |
addViolation ( $message, array $parameters = [] ) | ||
buildViolation ( $message, array $parameters = [] ) | ||
getClassName ( ) | ||
getConstraint ( ) | ||
getGroup ( ) | ||
getMetadata ( ) | ||
getObject ( ) | ||
getPropertyName ( ) | ||
getPropertyPath ( $subPath = '' ) | ||
getRoot ( ) | ||
getValidator ( ) | ||
getValue ( ) | ||
getViolations ( ) | ||
isConstraintValidated ( $cacheKey, $constraintHash ) | ||
isGroupValidated ( $cacheKey, $groupHash ) | ||
isObjectInitialized ( $cacheKey ) | ||
markConstraintAsValidated ( $cacheKey, $constraintHash ) | ||
markGroupAsValidated ( $cacheKey, $groupHash ) | ||
markObjectAsInitialized ( $cacheKey ) | ||
setConstraint ( |
||
setGroup ( $group ) | ||
setNode ( $value, $object, Symfony\Component\Validator\Mapping\MetadataInterface $metadata = null, $propertyPath ) |
public __construct ( Symfony\Component\Validator\Validator\ValidatorInterface $validator, mixed $root, Symfony\Component\Translation\TranslatorInterface $translator, string | null $translationDomain = null ) | ||
$validator | Symfony\Component\Validator\Validator\ValidatorInterface | The validator |
$root | mixed | The root value of the validated object graph |
$translator | Symfony\Component\Translation\TranslatorInterface | The translator |
$translationDomain | string | null | The translation domain to use for translating violation messages |
public addViolation ( $message, array $parameters = [] ) | ||
$parameters | array |
public buildViolation ( $message, array $parameters = [] ) | ||
$parameters | array |
public markConstraintAsValidated ( $cacheKey, $constraintHash ) |
public setConstraint ( |
||
$constraint |
public setNode ( $value, $object, Symfony\Component\Validator\Mapping\MetadataInterface $metadata = null, $propertyPath ) | ||
$metadata | Symfony\Component\Validator\Mapping\MetadataInterface |