Back to Language class

Method getPluralSuffixes

public array
getPluralSuffixes
(mixed $count)
Returns an array of suffixes for plural rules.
Parameters
  • int $count The count number the rule is for.
Returns
  • array The array of suffixes.
Since
  • 1.7.0
Class: Language
Project: Joomla

Method getPluralSuffixes - Source code

/**
 * Returns an array of suffixes for plural rules.
 *
 * @param   integer  $count  The count number the rule is for.
 *
 * @return  array    The array of suffixes.
 *
 * @since   1.7.0
 */
public function getPluralSuffixes($count)
{
    if ($this->pluralSuffixesCallback !== null) {
        return \call_user_func($this->pluralSuffixesCallback, $count);
    } else {
        return array((string) $count);
    }
}