| 1 | <?php |
||
| 9 | class TwigFormatter extends HtmlFormatter |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var \Twig_Environment |
||
| 13 | */ |
||
| 14 | protected $environment; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param \Twig_Environment $environment |
||
| 18 | * @param Httpstatus $httpStatus |
||
| 19 | */ |
||
| 20 | 3 | public function __construct(\Twig_Environment $environment, Httpstatus $httpStatus) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @param TemplatePayload $payload |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | 1 | public function body(PayloadInterface $payload) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param PayloadInterface $payload |
||
| 38 | * |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 1 | protected function render(PayloadInterface $payload) |
|
| 48 | |||
| 49 | /** |
||
| 50 | * @param PayloadInterface $payload |
||
| 51 | * |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | 1 | protected function template(PayloadInterface $payload) |
|
| 58 | |||
| 59 | /** |
||
| 60 | * @param PayloadInterface $payload |
||
| 61 | * |
||
| 62 | * @return array $context |
||
| 63 | */ |
||
| 64 | 1 | protected function context(PayloadInterface $payload) |
|
| 71 | } |
||
| 72 |