ValidatorBuilderInterface
addViolation() Adds the violation to the current execution context.
class TraversalStrategy Specifies whether and how a traversable object should be traversed.
string getClassName() Returns the name of the backing PHP class.
string|null getCode() Returns a machine-digestible error code for the violation.
class File extends Constraint
ClassMetadata|false read(string
array getRequiredOptions() Returns the name of the required options. Override this method
setCache(Cache $cache) Sets the cache to adapt.
ConstraintViolationBuilderInterface setInvalidValue(mixed $invalidValue) Sets the invalid value that caused this violation. Parameters mixed $invalidValue The invalid value Return Value ConstraintViolationBuilderInterface This builder
Page 5 of 49