Node.php 904 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. @trigger_error('The Twig_Function_Node class is deprecated since version 1.12 and will be removed in 2.0. Use Twig_SimpleFunction instead.', E_USER_DEPRECATED);
  11. /**
  12. * Represents a template function as a node.
  13. *
  14. * Use Twig_SimpleFunction instead.
  15. *
  16. * @author Fabien Potencier <fabien@symfony.com>
  17. *
  18. * @deprecated since 1.12 (to be removed in 2.0)
  19. */
  20. class Twig_Function_Node extends Twig_Function
  21. {
  22. protected $class;
  23. public function __construct($class, array $options = array())
  24. {
  25. parent::__construct($options);
  26. $this->class = $class;
  27. }
  28. public function getClass()
  29. {
  30. return $this->class;
  31. }
  32. public function compile()
  33. {
  34. }
  35. }