class RecursiveContextualValidator implements ContextualValidatorInterface
Recursive implementation of {@link ContextualValidatorInterface}.
Methods
__construct(ExecutionContextInterface $context, MetadataFactoryInterface $metadataFactory, ConstraintValidatorFactoryInterface $validatorFactory, array $objectInitializers = array()) Creates a validator for the given context. | ||
ContextualValidatorInterface | atPath(string $path) Appends the given path to the property path of the context. | |
ContextualValidatorInterface | validate(mixed $value, Constraint|Constraint[] $constraints = null, array|null $groups = null) Validates a value against a constraint or a list of constraints. | |
ContextualValidatorInterface | validateProperty(object $object, string $propertyName, array|null $groups = null) Validates a property of an object against the constraints specified for this property. | |
ContextualValidatorInterface | validatePropertyValue(object|string $objectOrClass, string $propertyName, mixed $value, array|null $groups = null) Validates a value against the constraints specified for an object's property. | |
ConstraintViolationListInterface | getViolations() Returns the violations that have been generated so far in the context of the validator. |
Details
__construct(ExecutionContextInterface $context, MetadataFactoryInterface $metadataFactory, ConstraintValidatorFactoryInterface $validatorFactory, array $objectInitializers = array())
Creates a validator for the given context.
ContextualValidatorInterface atPath(string $path)
Appends the given path to the property path of the context.
If called multiple times, the path will always be reset to the context's original path with the given path appended to it.
ContextualValidatorInterface validate(mixed $value, Constraint|Constraint[] $constraints = null, array|null $groups = null)
Validates a value against a constraint or a list of constraints.
If no constraint is passed, the constraint {@link \Symfony\Component\Validator\Constraints\Valid} is assumed.
ContextualValidatorInterface validateProperty(object $object, string $propertyName, array|null $groups = null)
Validates a property of an object against the constraints specified for this property.
ContextualValidatorInterface validatePropertyValue(object|string $objectOrClass, string $propertyName, mixed $value, array|null $groups = null)
Validates a value against the constraints specified for an object's property.
ConstraintViolationListInterface getViolations()
Returns the violations that have been generated so far in the context of the validator.
Please login to continue.