Literal
extends Node
in package
Abstract class of an AST node.
Table of Contents
Constants
Properties
Methods
- __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
Tags
$value
public
mixed
$value
Methods
__construct()
public
__construct(int $type, mixed $value) : mixed
Parameters
- $type : int
- $value : mixed
Tags
__toString()
Dumps the AST Node into a string representation for information purpose only.
public
__toString() : string
Return values
stringdispatch()
Double-dispatch method, supposed to dispatch back to the walker.
public
dispatch(mixed $walker) : string
Parameters
- $walker : mixed
Return values
stringdump()
public
dump(mixed $value) : string
Parameters
- $value : mixed