public function ConstraintViolation::getCode in Plug 7
Returns a machine-digestible error code for the violation.
Return value
mixed The error code.
Overrides ConstraintViolationInterface::getCode
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ConstraintViolation.php, line 229
Class
- ConstraintViolation
- Default implementation of {@ConstraintViolationInterface}.
Namespace
Symfony\Component\ValidatorCode
public function getCode() {
return $this->code;
}