composer package updates
[openemr.git] / vendor / twig / twig / lib / Twig / TokenParserInterface.php
blob14acc8084b56450f99304afa97b34b480a5f1cde
1 <?php
3 /*
4 * This file is part of Twig.
6 * (c) Fabien Potencier
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 /**
13 * Interface implemented by token parsers.
15 * @author Fabien Potencier <fabien@symfony.com>
17 interface Twig_TokenParserInterface
19 /**
20 * Sets the parser associated with this token parser.
22 public function setParser(Twig_Parser $parser);
24 /**
25 * Parses a token and returns a node.
27 * @return Twig_NodeInterface
29 * @throws Twig_Error_Syntax
31 public function parse(Twig_Token $token);
33 /**
34 * Gets the tag name associated with this token parser.
36 * @return string The tag name
38 public function getTag();
41 class_alias('Twig_TokenParserInterface', 'Twig\TokenParser\TokenParserInterface', false);
42 class_exists('Twig_Parser');
43 class_exists('Twig_Token');