5d72634a68fe7d091e36d350a9d93f9eb1cdec42
[yaffs-website] / vendor / twig / twig / lib / Twig / Extension.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 abstract class Twig_Extension implements Twig_ExtensionInterface
12 {
13     /**
14      * @deprecated since 1.23 (to be removed in 2.0), implement Twig_Extension_InitRuntimeInterface instead
15      */
16     public function initRuntime(Twig_Environment $environment)
17     {
18     }
19
20     public function getTokenParsers()
21     {
22         return array();
23     }
24
25     public function getNodeVisitors()
26     {
27         return array();
28     }
29
30     public function getFilters()
31     {
32         return array();
33     }
34
35     public function getTests()
36     {
37         return array();
38     }
39
40     public function getFunctions()
41     {
42         return array();
43     }
44
45     public function getOperators()
46     {
47         return array();
48     }
49
50     /**
51      * @deprecated since 1.23 (to be removed in 2.0), implement Twig_Extension_GlobalsInterface instead
52      */
53     public function getGlobals()
54     {
55         return array();
56     }
57
58     /**
59      * @deprecated since 1.26 (to be removed in 2.0), not used anymore internally
60      */
61     public function getName()
62     {
63         return get_class($this);
64     }
65 }