public function getPluralForms(Locale $locale)
    {
        if (!isset($this->rulesetsIndices[$locale->getLanguage()])) {
            return [self::RULE_OTHER];
        }

        $ruleset = $this->rulesets[$locale->getLanguage()][$this->rulesetsIndices[$locale->getLanguage()]] ?? null;

        if ($ruleset === null) {
            return [self::RULE_OTHER];
        }

        return array_merge(array_keys($ruleset), [self::RULE_OTHER]);
    }
public function getPluralForms(Locale $locale)
    {
        if (!isset($this->rulesetsIndices[$locale->getLanguage()])) {
            return [self::RULE_OTHER];
        }

        $ruleset = $this->rulesets[$locale->getLanguage()][$this->rulesetsIndices[$locale->getLanguage()]] ?? null;

        if ($ruleset === null) {
            return [self::RULE_OTHER];
        }

        return array_merge(array_keys($ruleset), [self::RULE_OTHER]);
    }
public function getPluralForms ( Locale $ locale ) { if ( ! isset ( $ this -> rulesetsIndices [ $ locale -> getLanguage ( ) ] ) ) { return [ self :: RULE_OTHER ] ; } $ ruleset = $ this -> rulesets [ $ locale -> getLanguage ( ) ] [ $ this -> rulesetsIndices [ $ locale -> getLanguage ( ) ] ] ?? null ; if ( $ ruleset === null ) { return [ self :: RULE_OTHER ] ; } return array_merge ( array_keys ( $ ruleset ) , [ self :: RULE_OTHER ] ) ; }
Returns array of plural forms available for particular locale.

@param Locale $locale Locale to return plural forms for
@return array Plural forms' names (one, zero, two, few, many, other) available for language set in this model
Returns array of plural forms available for particular locale .