string getMessage() Returns the violation message.
ConstraintViolationBuilderInterface setCode(string|null $code) Sets the violation code. Parameters string|null $code The violation code Return Value ConstraintViolationBuilderInterface This builder
class Choice extends Constraint
Constraint[] getConstraints()
mixed getRoot() Returns the value at which validation was started in the object graph.
bool hasPropertyMetadata(string $property) Check if there's any metadata attached to the given
setGroup(string|null $group) Sets the currently validated group.
mixed getValue() Returns the value that the validator is currently validating. If you
string getMessageTemplate() Returns the raw violation message. The raw violation message
class DefaultTranslator implements
Page 15 of 49