Interface implemented by compiler classes.
@package twig @author Fabien Potencier <fabien@symfony.com>
Expanded class hierarchy of Twig_CompilerInterface
All classes that implement Twig_CompilerInterface
interface Twig_CompilerInterface {
/**
* Compiles a node.
*
* @param Twig_NodeInterface $node The node to compile
*
* @return Twig_CompilerInterface The current compiler instance
*/
function compile(Twig_NodeInterface $node);
/**
* Gets the current PHP code after compilation.
*
* @return string The PHP code
*/
function getSource();
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Twig_CompilerInterface:: |
function | Compiles a node. | 1 | |
Twig_CompilerInterface:: |
function | Gets the current PHP code after compilation. | 1 |