Class Symbol

Summary

Fully Qualified Name: Laminas\I18n\Translator\Plural\Symbol

Description

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

Name Description Defined By
__construct() Create a new symbol. Symbol
getLeftDenotation() Get left denotation. Symbol
getNullDenotation() Get null denotation. Symbol
setLeftDenotationGetter() Set the left denotation getter. Symbol
setNullDenotationGetter() Set the null denotation getter. Symbol

Method Details

__construct()

Create a new symbol.

Parameter Name Type Description
$parser \Parser
$id string
$leftBindingPower int

Returns:

getLeftDenotation()

Get left denotation.

Parameter Name Type Description
$left \Symbol

Returns: \Symbol

getNullDenotation()

Get null denotation.

Returns: \Symbol

setLeftDenotationGetter()

Set the left denotation getter.

Parameter Name Type Description
$getter \Closure

Returns: $this

setNullDenotationGetter()

Set the null denotation getter.

Parameter Name Type Description
$getter \Closure

Returns: $this

Top