Compiler
Compiler
class Compiler
Compiles a node to PHP code.
Methods
__construct(array $functions) | ||
getFunction($name) | ||
string | getSource() Gets the current PHP code after compilation. | |
reset() | ||
$this | compile(Node $node) Compiles a node. | |
subcompile(Node $node) | ||
$this | raw(string $string) Adds a raw string to the compiled code. | |
$this | string(string $value) Adds a quoted string to the compiled code. | |
$this | 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()
$this compile(Node $node)
Compiles a node.
subcompile(Node $node)
$this raw(string $string)
Adds a raw string to the compiled code.
$this string(string $value)
Adds a quoted string to the compiled code.
$this repr(mixed $value)
Returns a PHP representation of a given value.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/ExpressionLanguage/Compiler.html