Returns a machine-digestible error code for the violation.
Return value
mixed The error code.
Overrides ConstraintViolationInterface::getCode
File
- drupal/core/vendor/symfony/validator/Symfony/Component/Validator/ConstraintViolation.php, line 172
Class
- ConstraintViolation
- Default implementation of {@ConstraintViolationInterface}.
Namespace
Symfony\Component\Validator
Code
public function getCode() {
return $this->code;
}