DeferredDeclareNode.php 552 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * This file is part of the rybakit/twig-deferred-extension package.
  4. *
  5. * (c) Eugene Leonovich <gen.work@gmail.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. declare(strict_types=1);
  11. namespace Twig\DeferredExtension;
  12. use Twig\Compiler;
  13. use Twig\Node\Node;
  14. final class DeferredDeclareNode extends Node
  15. {
  16. public function compile(Compiler $compiler) : void
  17. {
  18. $compiler
  19. ->write("private \$deferred;\n")
  20. ;
  21. }
  22. }