string getClassName() Returns the name of the backing PHP class.
add(ConstraintViolationInterface
static string getErrorName(string $errorCode) Returns the name of the given error
addViolation() Adds the violation to the current execution context.
Constraint|null getConstraint()
bool isConstraintValidated(string $cacheKey, string $constraintHash) Returns whether a constraint
ConstraintViolationBuilderInterface setInvalidValue(mixed $invalidValue) Sets the invalid value that caused this violation. Parameters mixed $invalidValue The invalid value Return Value ConstraintViolationBuilderInterface This builder
PropertyMetadataInterface[]
bool hasMetadataFor(mixed $value) Returns whether the class is able to return metadata for the
bool hasConstraints() Returns whether this element has any constraints.
Page 1 of 49