You are here

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\Validator

Code

public function getCode() {
  return $this->code;
}