public function LegacyConstraintViolationBuilder::setParameters in Plug 7
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
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Violation/ LegacyConstraintViolationBuilder.php, line 94
Class
- LegacyConstraintViolationBuilder
- Backwards-compatible implementation of {@link ConstraintViolationBuilderInterface}.
Namespace
Symfony\Component\Validator\ViolationCode
public function setParameters(array $parameters) {
$this->parameters = $parameters;
return $this;
}