Node.php 816 B

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