| 1 | <?php |
||
| 9 | final class TwigFormatter extends HtmlFormatter |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var Twig_Environment |
||
| 13 | */ |
||
| 14 | private $environment; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param Twig_Environment $environment |
||
| 18 | */ |
||
| 19 | 3 | public function __construct(Twig_Environment $environment) |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @param PayloadInterface $payload |
||
| 26 | * |
||
| 27 | * @return string |
||
| 28 | */ |
||
| 29 | 1 | public function body(PayloadInterface $payload) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @param PayloadInterface $payload |
||
| 36 | * |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | 1 | private function render(PayloadInterface $payload) |
|
| 46 | } |
||
| 47 |