public function ConstraintViolationBuilderInterface::setParameter in Plug 7
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
2 methods override ConstraintViolationBuilderInterface::setParameter()
- ConstraintViolationBuilder::setParameter in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Violation/ ConstraintViolationBuilder.php - Sets a parameter to be inserted into the violation message.
- LegacyConstraintViolationBuilder::setParameter in lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Violation/ LegacyConstraintViolationBuilder.php - Sets a parameter to be inserted into the violation message.
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Violation/ ConstraintViolationBuilderInterface.php, line 47
Class
- ConstraintViolationBuilderInterface
- Builds {@link \Symfony\Component\Validator\ConstraintViolationInterface} objects.
Namespace
Symfony\Component\Validator\ViolationCode
public function setParameter($key, $value);