ConstraintViolationBuilderInterface::setPlural()

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()
doc_Symfony
2016-10-28 06:11:39
Comments
Leave a Comment

Please login to continue.