/vendor/twig/twig/lib/Twig/Node/Flush.php
https://github.com/brtriver/silx-users-jp · PHP · 36 lines · 15 code · 3 blank · 18 comment · 0 complexity · 03eb18a04ac1322f21ac8091feb85dcb MD5 · raw file
- <?php
- /*
- * This file is part of Twig.
- *
- * (c) 2011 Fabien Potencier
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- /**
- * Represents a flush node.
- *
- * @author Fabien Potencier <fabien@symfony.com>
- */
- class Twig_Node_Flush extends Twig_Node
- {
- public function __construct($lineno, $tag)
- {
- parent::__construct(array(), array(), $lineno, $tag);
- }
- /**
- * Compiles the node to PHP.
- *
- * @param Twig_Compiler $compiler A Twig_Compiler instance
- */
- public function compile(Twig_Compiler $compiler)
- {
- $compiler
- ->addDebugInfo($this)
- ->write("flush();\n")
- ;
- }
- }