You are here

public function ConstraintViolation::getCode in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/ConstraintViolation.php \Symfony\Component\Validator\ConstraintViolation::getCode()

Returns a machine-digestible error code for the violation.

Return value

mixed The error code.

Overrides ConstraintViolationInterface::getCode

File

vendor/symfony/validator/ConstraintViolation.php, line 239

Class

ConstraintViolation
Default implementation of {@ConstraintViolationInterface}.

Namespace

Symfony\Component\Validator

Code

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