Neos\Flow\I18n\Translator::getPluralForm PHP Méthode

getPluralForm() protected méthode

If $quantity is numeric and non-NULL, the plural form for provided $locale will be chosen according to it. In all other cases, NULL is returned.
protected getPluralForm ( mixed $quantity, Locale $locale ) : string
$quantity mixed
$locale Locale
Résultat string
    protected function getPluralForm($quantity, Locale $locale)
    {
        if (!is_numeric($quantity)) {
            return null;
        } else {
            return $this->pluralsReader->getPluralForm($quantity, $locale);
        }
    }