Zend\I18n\Translator\Plural\Symbol
Parser symbol.
All properties in the symbol are defined as public for easier and faster
access from the applied closures. An exception are the closure properties
themselves, as they have to be accessed via the appropriate getter and
setter methods.
Synopsis
class Symbol
{
- // members
- public Parser $parser;
- public string $id;
- public int $leftBindingPower;
- protected callable $nullDenotationGetter;
- protected callable $leftDenotationGetter;
- public mixed $value;
- public Symbol $first;
- public Symbol $second;
- public Symbol $third;
- // methods
- public void __construct()
- public Symbol setNullDenotationGetter()
- public Symbol setLeftDenotationGetter()
- public Symbol getNullDenotation()
- public Symbol getLeftDenotation()
Members
protected
- $leftDenotationGetter
—
Zend\I18n\Translator\Plural\callable
Getter for left denotation. - $nullDenotationGetter
—
Zend\I18n\Translator\Plural\callable
Getter for null denotation.
public
- $first
—
Zend\I18n\Translator\Plural\Symbol
First node value. - $id
—
string
Node or token type name. - $leftBindingPower
—
int
Left binding power (precedence). - $parser
—
Zend\I18n\Translator\Plural\Parser
Parser instance. - $second
—
Zend\I18n\Translator\Plural\Symbol
Second node value. - $third
—
Zend\I18n\Translator\Plural\Symbol
Third node value. - $value
—
mixed
Value used by literals.
Methods
public
- __construct() — Create a new symbol.
- getLeftDenotation() — Get left denotation.
- getNullDenotation() — Get null denotation.
- setLeftDenotationGetter() — Set the left denotation getter.
- setNullDenotationGetter() — Set the null denotation getter.