evaluate()
fromString()
getNumPlurals()
__construct()
createAst()
evaluateAstPart()
$ast
$numPlurals
$parser
Plural rule evaluator.
evaluate(int $number) : int
fromString(string $string) : \Zend\I18n\Translator\Plural\Rule
getNumPlurals() : int
int
__construct(int $numPlurals, array $ast) : \Zend\I18n\Translator\Plural\Rule
createAst(\Zend\I18n\Translator\Plural\Symbol $symbol) : array
Theoretically we could just use the given Symbol, but that one is not so easy to serialize and also takes up more memory.
array
evaluateAstPart(array $ast, int $number) : int
$ast : array
$numPlurals : int