class Compiler
Compiles a node to PHP code.
Methods
__construct(array $functions) | ||
getFunction($name) | ||
string | getSource() Gets the current PHP code after compilation. | |
reset() | ||
Compiler | compile(Node $node) Compiles a node. | |
subcompile(Node $node) | ||
Compiler | raw(string $string) Adds a raw string to the compiled code. | |
Compiler | string(string $value) Adds a quoted string to the compiled code. | |
Compiler | repr(mixed $value) Returns a PHP representation of a given value. |
Details
__construct(array $functions)
getFunction($name)
string getSource()
Gets the current PHP code after compilation.
reset()
subcompile(Node $node)
Compiler raw(string $string)
Adds a raw string to the compiled code.
Compiler string(string $value)
Adds a quoted string to the compiled code.
Compiler repr(mixed $value)
Returns a PHP representation of a given value.
Please login to continue.