1 | <?php |
||
9 | final class TwigFormatter extends HtmlFormatter |
||
10 | { |
||
11 | /** |
||
12 | * @var Twig_Environment |
||
13 | */ |
||
14 | private $environment; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $template; |
||
20 | |||
21 | 3 | public function __construct(Twig_Environment $environment) |
|
25 | |||
26 | /** |
||
27 | * Get a copy that uses a different template. |
||
28 | * |
||
29 | * @param string $template |
||
30 | * |
||
31 | * @return static |
||
32 | */ |
||
33 | 1 | public function withTemplate($template) |
|
40 | |||
41 | /** |
||
42 | * @inheritDoc |
||
43 | */ |
||
44 | 1 | public function format($content) |
|
48 | } |
||
49 |