You are here

public function LegacyConstraintViolationBuilder::setInvalidValue in Plug 7

Sets the invalid value that caused this violation.

Parameters

mixed $invalidValue The invalid value:

Return value

ConstraintViolationBuilderInterface This builder

Overrides ConstraintViolationBuilderInterface::setInvalidValue

File

lib/Symfony/validator/Symfony/Component/Validator/Violation/LegacyConstraintViolationBuilder.php, line 114

Class

LegacyConstraintViolationBuilder
Backwards-compatible implementation of {@link ConstraintViolationBuilderInterface}.

Namespace

Symfony\Component\Validator\Violation

Code

public function setInvalidValue($invalidValue) {
  $this->invalidValue = $invalidValue;
  return $this;
}