You are here

public function ConstraintViolationBuilder::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/ConstraintViolationBuilder.php, line 147

Class

ConstraintViolationBuilder
Default implementation of {@link ConstraintViolationBuilderInterface}.

Namespace

Symfony\Component\Validator\Violation

Code

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