public function ConstraintViolationInterface::getCode in Plug 7
Returns a machine-digestible error code for the violation.
Return value
mixed The error code.
1 method overrides ConstraintViolationInterface::getCode()
- ConstraintViolation::getCode in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ConstraintViolation.php - Returns a machine-digestible error code for the violation.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ ConstraintViolationInterface.php, line 135
Class
- ConstraintViolationInterface
- A violation of a constraint that happened during validation.
Namespace
Symfony\Component\ValidatorCode
public function getCode();