Literal
extends Node
in package
Abstract class of an AST node.
Table of Contents
- BOOLEAN = 2
- NUMERIC = 3
- STRING = 1
- $type : int
- $value : mixed
- __construct() : mixed
- __toString() : string
- Dumps the AST Node into a string representation for information purpose only.
- dispatch() : string
- Double-dispatch method, supposed to dispatch back to the walker.
- dump() : string
Constants
BOOLEAN
public
mixed
BOOLEAN
= 2
NUMERIC
public
mixed
NUMERIC
= 3
STRING
public
mixed
STRING
= 1
Properties
$type
public
int
$type
$value
public
mixed
$value
Methods
__construct()
public
__construct(int $type, mixed $value) : mixed
Parameters
- $type : int
- $value : mixed
Return values
mixed —__toString()
Dumps the AST Node into a string representation for information purpose only.
public
__toString() : string
Return values
string —dispatch()
Double-dispatch method, supposed to dispatch back to the walker.
public
dispatch(mixed $walker) : string
Parameters
- $walker : mixed
Return values
string —dump()
public
dump(object $obj) : string
Parameters
- $obj : object