Fully Qualified Name: | Zend\I18n\Translator\Plural\Rule |
Plural rule evaluator.
Name | Description | Defined By |
---|---|---|
evaluate() | Evaluate a number and return the plural index. | Rule |
fromString() | Create a new rule from a string. | Rule |
getNumPlurals() | Get number of possible plural forms. | Rule |
Evaluate a number and return the plural index.
Parameter Name | Type | Description |
---|---|---|
$number | int |
Returns: int
Create a new rule from a string.
Parameter Name | Type | Description |
---|---|---|
$string | string |
Returns: \Rule
Get number of possible plural forms.
Returns: int