You are here

interface Twig_CompilerInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/CompilerInterface.php \Twig_CompilerInterface

Interface implemented by compiler classes.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

Expanded class hierarchy of Twig_CompilerInterface

All classes that implement Twig_CompilerInterface

Deprecated

since 1.12 (to be removed in 3.0)

File

vendor/twig/twig/lib/Twig/CompilerInterface.php, line 19

View source
interface Twig_CompilerInterface {

  /**
   * Compiles a node.
   *
   * @param Twig_NodeInterface $node The node to compile
   *
   * @return Twig_CompilerInterface The current compiler instance
   */
  public function compile(Twig_NodeInterface $node);

  /**
   * Gets the current PHP code after compilation.
   *
   * @return string The PHP code
   */
  public function getSource();

}

Members

Namesort descending Modifiers Type Description Overrides
Twig_CompilerInterface::compile public function Compiles a node. 1
Twig_CompilerInterface::getSource public function Gets the current PHP code after compilation. 1