ConstraintViolationBuilderInterface
setPlural(int $number)
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 See also \Symfony\Component\Translation\TranslatorInterface::transChoice()