You are here

public function ConstraintViolationInterface::getCode in Zircon Profile 8

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

Returns a machine-digestible error code for the violation.

Return value

mixed The error code.

1 method overrides ConstraintViolationInterface::getCode()
ConstraintViolation::getCode in vendor/symfony/validator/ConstraintViolation.php
Returns a machine-digestible error code for the violation.

File

vendor/symfony/validator/ConstraintViolationInterface.php, line 125

Class

ConstraintViolationInterface
A violation of a constraint that happened during validation.

Namespace

Symfony\Component\Validator

Code

public function getCode();