Version 1
[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 $filename;
7
8     public function __construct(Twig_Environment $env = null, $filename = null)
9     {
10         if (null !== $env) {
11             parent::__construct($env);
12         }
13         $this->parent = false;
14         $this->blocks = array();
15         $this->filename = $filename;
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(21 => 2);
32     }
33
34     public function getSourceContext()
35     {
36         return new Twig_Source("   foo bar\n     twig source\n\n", 'foo.twig', false === $this->filename ? null : ($this->filename ?: 'bar.twig'));
37     }
38 }