1 | <?php |
||
50 | class TwigOptions extends AbstractOptions |
||
51 | { |
||
52 | /** |
||
53 | * If we are in debug mode |
||
54 | * |
||
55 | * @var bool |
||
56 | */ |
||
57 | protected $debug = false; |
||
58 | |||
59 | /** |
||
60 | * Which encoding should be used by twig |
||
61 | * |
||
62 | * @var string |
||
63 | */ |
||
64 | protected $charset = 'utf8'; |
||
65 | |||
66 | /** |
||
67 | * The directory in which twig stores the cached files |
||
68 | * |
||
69 | * @var string |
||
70 | */ |
||
71 | protected $cache = 'data/cache/twig'; |
||
72 | |||
73 | /** |
||
74 | * @var string |
||
75 | */ |
||
76 | protected $autoescape = 'html'; |
||
77 | |||
78 | /** |
||
79 | * @param string $autoescape |
||
80 | */ |
||
81 | 1 | public function setAutoescape($autoescape) |
|
85 | |||
86 | /** |
||
87 | * @return string |
||
88 | */ |
||
89 | 1 | public function getAutoescape() |
|
93 | |||
94 | /** |
||
95 | * @param string $cache |
||
96 | */ |
||
97 | 1 | public function setCache($cache) |
|
101 | |||
102 | /** |
||
103 | * @return string |
||
104 | */ |
||
105 | 1 | public function getCache() |
|
109 | |||
110 | /** |
||
111 | * @param string $charset |
||
112 | */ |
||
113 | 1 | public function setCharset($charset) |
|
117 | |||
118 | /** |
||
119 | * @return string |
||
120 | */ |
||
121 | 1 | public function getCharset() |
|
125 | |||
126 | /** |
||
127 | * @param boolean $debug |
||
128 | */ |
||
129 | 1 | public function setDebug($debug) |
|
133 | |||
134 | /** |
||
135 | * @return boolean |
||
136 | */ |
||
137 | 1 | public function getDebug() |
|
141 | } |
||
142 |