You are here

public function ConstraintViolation::getMessage in Plug 7

Returns the violation message.

@api

Return value

string The violation message.

Overrides ConstraintViolationInterface::getMessage

1 call to ConstraintViolation::getMessage()
ConstraintViolation::__toString in lib/Symfony/validator/Symfony/Component/Validator/ConstraintViolation.php
Converts the violation into a string for debugging purposes.

File

lib/Symfony/validator/Symfony/Component/Validator/ConstraintViolation.php, line 177

Class

ConstraintViolation
Default implementation of {@ConstraintViolationInterface}.

Namespace

Symfony\Component\Validator

Code

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