NodeInterface.php 662 B

1234567891011121314151617181920212223242526272829303132
  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. * @author Fabien Potencier <fabien@symfony.com>
  14. *
  15. * @deprecated since 1.12 (to be removed in 3.0)
  16. */
  17. interface Twig_NodeInterface extends Countable, IteratorAggregate
  18. {
  19. /**
  20. * Compiles the node to PHP.
  21. *
  22. * @param Twig_Compiler $compiler A Twig_Compiler instance
  23. */
  24. public function compile(Twig_Compiler $compiler);
  25. public function getLine();
  26. public function getNodeTag();
  27. }