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.

 Methods

Create a new symbol.

__construct(\Zend\I18n\Translator\Plural\Parser $parser, string $id, int $leftBindingPower) 

Parameters

$id

string

$leftBindingPower

int

Set the left denotation getter.

setLeftDenotationGetter(\Closure $getter) : \Zend\I18n\Translator\Plural\Symbol

Parameters

$getter

\Closure

Returns

Set the null denotation getter.

setNullDenotationGetter(\Closure $getter) : \Zend\I18n\Translator\Plural\Symbol

Parameters

$getter

\Closure

Returns

 Properties

 

First node value.

$first : \Zend\I18n\Translator\Plural\Symbol

 

Node or token type name.

$id : string

 

Left binding power (precedence).

$leftBindingPower : int

 

Parser instance.

$parser : \Zend\I18n\Translator\Plural\Parser

 

Second node value.

$second : \Zend\I18n\Translator\Plural\Symbol

 

Third node value.

$third : \Zend\I18n\Translator\Plural\Symbol

 

Value used by literals.

$value : mixed

 

Getter for left denotation.

$leftDenotationGetter : \Zend\I18n\Translator\Plural\callable

 

Getter for null denotation.

$nullDenotationGetter : \Zend\I18n\Translator\Plural\callable