Class Rule

Summary

Fully Qualified Name: Zend\I18n\Translator\Plural\Rule

Description

Plural rule evaluator.

Methods

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

Method Details

evaluate()

Evaluate a number and return the plural index.

Parameter Name Type Description
$number int

Returns: int

fromString()

Create a new rule from a string.

Parameter Name Type Description
$string string

Returns: \Rule

getNumPlurals()

Get number of possible plural forms.

Returns: int

Top