You are here

public function LegacyConstraintViolationBuilder::setParameters in Zircon Profile 8

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

Sets all parameters to be inserted into the violation message.

Parameters

array $parameters An array with the parameter names as keys and: the values to be inserted in their place as values

Return value

ConstraintViolationBuilderInterface This builder

Overrides ConstraintViolationBuilderInterface::setParameters

File

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

Class

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

Namespace

Symfony\Component\Validator\Violation

Code

public function setParameters(array $parameters) {
  $this->parameters = $parameters;
  return $this;
}