class Compiler
Compiles a node to PHP code.
__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. |
array | $functions |
$name |
Gets the current PHP code after compilation.
string | The PHP code |
Compiles a node.
Node | $node |
$this |
Node | $node |
Adds a raw string to the compiled code.
string | $string | The string |
$this |
Adds a quoted string to the compiled code.
string | $value | The string |
$this |
Returns a PHP representation of a given value.
mixed | $value | The value to convert |
$this |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/ExpressionLanguage/Compiler.html