Exemple #1
0
 /**
  * Returns the number of plural forms.
  *
  * @return int
  *
  * @example For Japanese: returns 1
  * @example For English: returns 2
  * @example For French: returns 2
  * @example For Russian returns 3
  */
 public function getNumberOfPluralForms()
 {
     return (int) $this->locale->getNumPlurals();
 }