fe2542929b10057b120e765c9275f2806aa213e7
[yaffs-website] / vendor / symfony / var-dumper / Tests / Fixtures / Twig.php
1 <?php
2
3 /* foo.twig */
4 class __TwigTemplate_VarDumperFixture_u75a09 extends Twig\Template
5 {
6     private $path;
7
8     public function __construct(Twig\Environment $env = null, $path = null)
9     {
10         if (null !== $env) {
11             parent::__construct($env);
12         }
13         $this->parent = false;
14         $this->blocks = array();
15         $this->path = $path;
16     }
17
18     protected function doDisplay(array $context, array $blocks = array())
19     {
20         // line 2
21         throw new \Exception('Foobar');
22     }
23
24     public function getTemplateName()
25     {
26         return 'foo.twig';
27     }
28
29     public function getDebugInfo()
30     {
31         return array(20 => 1, 21 => 2);
32     }
33
34     public function getSourceContext()
35     {
36         return new Twig\Source("   foo bar\n     twig source\n\n", 'foo.twig', $this->path ?: __FILE__);
37     }
38 }