Interface Twig_CompilerInterface

Implemented byTwig_Compiler
Deprecated since version since 1.12 (to be removed in 3.0)

Interface implemented by compiler classes.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
compile() Compiles a node. Twig_CompilerInterface
getSource() Gets the current PHP code after compilation. Twig_CompilerInterface

Method Details

compile() public abstract method

Compiles a node.

public abstract Twig_CompilerInterface compile ( Twig_NodeInterface $node )
$node Twig_NodeInterface

The node to compile

return Twig_CompilerInterface

The current compiler instance

getSource() public abstract method

Gets the current PHP code after compilation.

public abstract string getSource ( )
return string

The PHP code