public function ConstraintViolationBuilder::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/ ConstraintViolationBuilder.php, line 127
Class
- ConstraintViolationBuilder
- Default implementation of {@link ConstraintViolationBuilderInterface}.
Namespace
Symfony\Component\Validator\ViolationCode
public function setParameters(array $parameters) {
$this->parameters = $parameters;
return $this;
}