Returns the constraint whose validation caused the violation.
public function getConstraint() : ?Constraint;