Method | Description | |
---|---|---|
__construct ( integer $type, string $content = '', integer $position ) : |
Construct and initialize token | |
__get ( string $name ) : integer | string | Get token attribute | |
__set ( string $name, mixed $value ) : void | Do not allow to set attributes | |
__toString ( ) : string | Convert token object to string | |
typeToString ( integer $type ) : string | Return string representation of token type |
Method | Description | |
---|---|---|
quoteContent ( string $content ) : string | Escape content for double quoted, single line string representation |
public __toString ( ) : string | ||
return | string |
protected quoteContent ( string $content ) : string | ||
$content | string | |
return | string |
public static typeToString ( integer $type ) : string | ||
$type | integer | |
return | string |