class GraphWalker
Responsible for walking over and initializing validation on different types of items.
Methods
|
__construct(ValidationVisitor $visitor, MetadataFactoryInterface $metadataFactory, TranslatorInterface $translator, null|string $translationDomain = null, array $validatedObjects = array())
Creates a new graph walker. |
||
| ConstraintViolationList | getViolations() | |
|
walkObject(ClassMetadata $metadata, object $object, string $group, string $propertyPath)
Initialize validation on the given object using the given metadata instance and validation group. |
||
|
walkProperty(ClassMetadata $metadata, $property $property, $object $object, $group $group, $propertyPath $propertyPath, null $propagatedGroup = null)
Validates a property of a class. |
||
|
walkPropertyValue(ClassMetadata $metadata, $property $property, $value $value, $group $group, $propertyPath $propertyPath)
Validates a property of a class against a potential value. |
||
|
walkReference($value $value, $group $group, $propertyPath $propertyPath, $traverse $traverse, bool $deep = false)
Validates an object or an array. |
||
|
walkConstraint(Constraint $constraint, $value $value, $group $group, $propertyPath $propertyPath, null $currentClass = null, null $currentProperty = null)
Validates a value against a constraint. |
Details
at line 69
public
__construct(ValidationVisitor $visitor, MetadataFactoryInterface $metadataFactory, TranslatorInterface $translator, null|string $translationDomain = null, array $validatedObjects = array())
Creates a new graph walker.
at line 85
public ConstraintViolationList
getViolations()
at line 103
public
walkObject(ClassMetadata $metadata, object $object, string $group, string $propertyPath)
Initialize validation on the given object using the given metadata instance and validation group.
at line 140
public
walkProperty(ClassMetadata $metadata, $property $property, $object $object, $group $group, $propertyPath $propertyPath, null $propagatedGroup = null)
Validates a property of a class.
at line 164
public
walkPropertyValue(ClassMetadata $metadata, $property $property, $value $value, $group $group, $propertyPath $propertyPath)
Validates a property of a class against a potential value.
at line 189
public
walkReference($value $value, $group $group, $propertyPath $propertyPath, $traverse $traverse, bool $deep = false)
Validates an object or an array.
at line 208
public
walkConstraint(Constraint $constraint, $value $value, $group $group, $propertyPath $propertyPath, null $currentClass = null, null $currentProperty = null)
Validates a value against a constraint.