This can be used to store both the string representation of a token, and any useful meta-data associated with the token.

meta-data should be stored as an array

 Methods

__construct()

__construct($s, $m) 

Parameters

$s

$m

__toString()

__toString() 

offsetExists()

offsetExists($offset) 

Parameters

$offset

offsetGet()

offsetGet($offset) 

Parameters

$offset

offsetSet()

offsetSet($offset, $value) 

Parameters

$offset

$value

offsetUnset()

offsetUnset($offset) 

Parameters

$offset

 Properties

   

$string

$string