NodeInterface.php 566B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /*
  3. * This file is part of Twig.
  4. *
  5. * (c) 2010 Fabien Potencier
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. /**
  11. * Represents a node in the AST.
  12. *
  13. * @package twig
  14. * @author Fabien Potencier <fabien@symfony.com>
  15. */
  16. interface Twig_NodeInterface
  17. {
  18. /**
  19. * Compiles the node to PHP.
  20. *
  21. * @param Twig_Compiler A Twig_Compiler instance
  22. */
  23. function compile(Twig_Compiler $compiler);
  24. function getLine();
  25. function getNodeTag();
  26. }