Adds a violation at the current node of the validation graph.
@api
string $message The error message.:
array $params The parameters substituted in the error message.:
mixed $invalidValue The invalid, validated value.:
integer|null $pluralization The number to use to pluralize of the message.:
integer|null $code The violation code.:
public function addViolation($message, array $params = array(), $invalidValue = null, $pluralization = null, $code = null);