| Total Complexity | 4 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class TwigTheme implements RenderableInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var \Twig_Environment |
||
| 16 | */ |
||
| 17 | private $twig; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | private $template; |
||
| 23 | /** |
||
| 24 | * @var BlockRendererInterface |
||
| 25 | */ |
||
| 26 | private $blockRenderer; |
||
| 27 | |||
| 28 | public function __construct(\Twig_Environment $twig, string $template, BlockRendererInterface $blockRenderer) |
||
| 29 | { |
||
| 30 | $this->twig = $twig; |
||
| 31 | $this->template = $template; |
||
| 32 | $this->blockRenderer = $blockRenderer; |
||
| 33 | } |
||
| 34 | |||
| 35 | |||
| 36 | /** |
||
| 37 | * Renders (as a stream) the data passed in parameter. |
||
| 38 | * |
||
| 39 | * @param mixed[] $context |
||
| 40 | * @return StreamInterface |
||
| 41 | */ |
||
| 42 | public function render(array $context): StreamInterface |
||
| 62 | } |
||
| 63 | } |
||
| 64 |