public function LegacyConstraintViolationBuilder::setPlural in Plug 7
Sets the number which determines how the plural form of the violation message is chosen when it is translated.
Parameters
int $number The number for determining the plural form:
Return value
ConstraintViolationBuilderInterface This builder
Overrides ConstraintViolationBuilderInterface::setPlural
See also
\Symfony\Component\Translation\TranslatorInterface::transChoice()
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Violation/ LegacyConstraintViolationBuilder.php, line 124
Class
- LegacyConstraintViolationBuilder
- Backwards-compatible implementation of {@link ConstraintViolationBuilderInterface}.
Namespace
Symfony\Component\Validator\ViolationCode
public function setPlural($number) {
$this->plural = $number;
return $this;
}