Security update to Drupal 8.4.6
[yaffs-website] / vendor / twig / twig / lib / Twig / NodeVisitorInterface.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  * Twig_NodeVisitorInterface is the interface the all node visitor classes must implement.
14  *
15  * @author Fabien Potencier <fabien@symfony.com>
16  */
17 interface Twig_NodeVisitorInterface
18 {
19     /**
20      * Called before child nodes are visited.
21      *
22      * @return Twig_NodeInterface The modified node
23      */
24     public function enterNode(Twig_NodeInterface $node, Twig_Environment $env);
25
26     /**
27      * Called after child nodes are visited.
28      *
29      * @return Twig_NodeInterface|false The modified node or false if the node must be removed
30      */
31     public function leaveNode(Twig_NodeInterface $node, Twig_Environment $env);
32
33     /**
34      * Returns the priority for this visitor.
35      *
36      * Priority should be between -10 and 10 (0 is the default).
37      *
38      * @return int The priority level
39      */
40     public function getPriority();
41 }
42
43 class_alias('Twig_NodeVisitorInterface', 'Twig\NodeVisitor\NodeVisitorInterface', false);
44 class_exists('Twig_Environment');
45 class_exists('Twig_Node');