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.

package Default

 Methods

Create a new symbol.

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

Parameters

$parser

\Zend\I18n\Translator\Plural\Parser

$id

string

$leftBindingPower

integer

Get left denotation.

getLeftDenotation(\Zend\I18n\Translator\Plural\Symbol $left) : \Zend\I18n\Translator\Plural\Symbol

Parameters

$left

\Zend\I18n\Translator\Plural\Symbol

Exceptions

\Zend\I18n\Exception\ParseException

Returns

\Zend\I18n\Translator\Plural\Symbol

Get null denotation.

getNullDenotation() : \Zend\I18n\Translator\Plural\Symbol

Exceptions

\Zend\I18n\Exception\ParseException

Returns

\Zend\I18n\Translator\Plural\Symbol

Set the left denotation getter.

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

Parameters

$getter

\Closure

Returns

\Zend\I18n\Translator\Plural\Symbol

Set the null denotation getter.

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

Parameters

$getter

\Closure

Returns

\Zend\I18n\Translator\Plural\Symbol

 Properties

 

First node value.

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

Default

 

Node or token type name.

$id : string

Default

 

Left binding power (precedence).

$leftBindingPower : integer

Default

 

Parser instance.

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

Default

 

Second node value.

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

Default

 

Third node value.

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

Default

 

Value used by literals.

$value : mixed

Default

 

Getter for left denotation.

$leftDenotationGetter : callable

Default

 

Getter for null denotation.

$nullDenotationGetter : callable

Default