Grammar.php 595B

12345678910111213141516171819202122232425262728293031
  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. abstract class Twig_Extensions_Grammar implements Twig_Extensions_GrammarInterface
  11. {
  12. protected $name;
  13. protected $parser;
  14. public function __construct($name)
  15. {
  16. $this->name = $name;
  17. }
  18. public function setParser(Twig_ParserInterface $parser)
  19. {
  20. $this->parser = $parser;
  21. }
  22. public function getName()
  23. {
  24. return $this->name;
  25. }
  26. }