Adds a constraint violation.
\Symfony\Component\Validator\ConstraintViolationInterface $violation: The constraint violation.
public function addViolation(ConstraintViolationInterface $violation) : void { $this->violations ->add($violation); }