Security update to Drupal 8.4.6
[yaffs-website] / vendor / twig / twig / lib / Twig / TokenParserInterface.php
1 <?php
2
3 /*
4  * This file is part of Twig.
5  *
6  * (c) Fabien Potencier
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 /**
13  * Interface implemented by token parsers.
14  *
15  * @author Fabien Potencier <fabien@symfony.com>
16  */
17 interface Twig_TokenParserInterface
18 {
19     /**
20      * Sets the parser associated with this token parser.
21      */
22     public function setParser(Twig_Parser $parser);
23
24     /**
25      * Parses a token and returns a node.
26      *
27      * @return Twig_NodeInterface
28      *
29      * @throws Twig_Error_Syntax
30      */
31     public function parse(Twig_Token $token);
32
33     /**
34      * Gets the tag name associated with this token parser.
35      *
36      * @return string The tag name
37      */
38     public function getTag();
39 }
40
41 class_alias('Twig_TokenParserInterface', 'Twig\TokenParser\TokenParserInterface', false);
42 class_exists('Twig_Parser');
43 class_exists('Twig_Token');