You are here

public function LegacyConstraintViolationBuilder::setParameter in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Violation/LegacyConstraintViolationBuilder.php \Symfony\Component\Validator\Violation\LegacyConstraintViolationBuilder::setParameter()

Sets a parameter to be inserted into the violation message.

Parameters

string $key The name of the parameter:

string $value The value to be inserted in the parameter's place:

Return value

ConstraintViolationBuilderInterface This builder

Overrides ConstraintViolationBuilderInterface::setParameter

File

vendor/symfony/validator/Violation/LegacyConstraintViolationBuilder.php, line 86

Class

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

Namespace

Symfony\Component\Validator\Violation

Code

public function setParameter($key, $value) {
  $this->parameters[$key] = $value;
  return $this;
}