public function ConstraintViolation::getConstraint in Plug 7
Returns the constraint whose validation caused the violation.
Return value
Constraint|null The constraint or null if it is not known
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ConstraintViolation.php, line 211
Class
- ConstraintViolation
- Default implementation of {@ConstraintViolationInterface}.
Namespace
Symfony\Component\ValidatorCode
public function getConstraint() {
return $this->constraint;
}