You are here

public function ConstraintViolation::getMessage in Zircon Profile 8

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

Returns the violation message.

Return value

string The violation message.

Overrides ConstraintViolationInterface::getMessage

1 call to ConstraintViolation::getMessage()
ConstraintViolation::__toString in vendor/symfony/validator/ConstraintViolation.php
Converts the violation into a string for debugging purposes.

File

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

Class

ConstraintViolation
Default implementation of {@ConstraintViolationInterface}.

Namespace

Symfony\Component\Validator

Code

public function getMessage() {
  return $this->message;
}