PageRenderTime 58ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/Twig/Node/Flush.php

https://bitbucket.org/RogerBCA/proyecto-base-php
PHP | 37 lines | 15 code | 3 blank | 19 comment | 0 complexity | b9f960bd70ea111d921c78ef7a95329c MD5 | raw file
Possible License(s): LGPL-2.1
  1. <?php
  2. /*
  3. * This file is part of Twig.
  4. *
  5. * (c) 2011 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 flush node.
  12. *
  13. * @package twig
  14. * @author Fabien Potencier <fabien@symfony.com>
  15. */
  16. class Twig_Node_Flush extends Twig_Node
  17. {
  18. public function __construct($lineno, $tag)
  19. {
  20. parent::__construct(array(), array(), $lineno, $tag);
  21. }
  22. /**
  23. * Compiles the node to PHP.
  24. *
  25. * @param Twig_Compiler A Twig_Compiler instance
  26. */
  27. public function compile(Twig_Compiler $compiler)
  28. {
  29. $compiler
  30. ->addDebugInfo($this)
  31. ->write("flush();\n")
  32. ;
  33. }
  34. }