ExecutionContextInterface::setConstraint()

setConstraint(Constraint $constraint) Sets the currently validated constraint. Parameters Constraint $constraint The validated constraint

ExecutionContextInterface::setGroup()

setGroup(string|null $group) Sets the currently validated group. Parameters string|null $group The validated group

ExecutionContextInterface::setNode()

setNode(mixed $value, object|null $object, MetadataInterface $metadata = null, string $propertyPath) Sets the currently validated value. Parameters mixed $value The validated value object|null $object The currently validated object MetadataInterface $metadata The validation metadata string $propertyPath The property path to the current value

ExecutionContextInterface::isConstraintValidated()

bool isConstraintValidated(string $cacheKey, string $constraintHash) Returns whether a constraint was validated for an object. Parameters string $cacheKey The hash of the object string $constraintHash The hash of the constraint Return Value bool Whether the constraint was already validated

ExecutionContextInterface::markConstraintAsValidated()

markConstraintAsValidated(string $cacheKey, string $constraintHash) Marks a constraint as validated for an object. Parameters string $cacheKey The hash of the object string $constraintHash The hash of the constraint

ExecutionContextInterface::markObjectAsInitialized()

markObjectAsInitialized(string $cacheKey) Marks that an object was initialized. Parameters string $cacheKey The hash of the object See also ObjectInitializerInterface

ExecutionContextInterface::isObjectInitialized()

bool isObjectInitialized(string $cacheKey) Returns whether an object was initialized. Parameters string $cacheKey The hash of the object Return Value bool Whether the object was already initialized See also ObjectInitializerInterface

ExecutionContextInterface::getViolations()

ConstraintViolationListInterface getViolations() Returns the violations generated by the validator so far. Return Value ConstraintViolationListInterface The constraint violation list

ExecutionContextInterface::isGroupValidated()

bool isGroupValidated(string $cacheKey, string $groupHash) Returns whether an object was validated in a specific validation group. Parameters string $cacheKey The hash of the object string $groupHash The group's name or hash, if it is group sequence Return Value bool Whether the object was already validated for that group

ExecutionContextInterface::markGroupAsValidated()

markGroupAsValidated(string $cacheKey, string $groupHash) Marks an object as validated in a specific validation group. Parameters string $cacheKey The hash of the object string $groupHash The group's name or hash, if it is group sequence