| Total Complexity | 3 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | final class PhpTemplatesRenderer implements RendererInterface |
||
| 12 | { |
||
| 13 | /** @var EngineInterface */ |
||
| 14 | private $engine; |
||
| 15 | |||
| 16 | 3 | public function __construct(EngineInterface $engine) |
|
| 17 | { |
||
| 18 | 3 | $this->engine = $engine; |
|
| 19 | 3 | } |
|
| 20 | |||
| 21 | 2 | public function supports(TagInterface $tag): bool |
|
| 22 | { |
||
| 23 | 2 | return $tag instanceof PhpTemplatesTagInterface; |
|
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param PhpTemplatesTagInterface|TagInterface $tag |
||
| 28 | */ |
||
| 29 | 1 | public function render(TagInterface $tag): string |
|
| 32 | } |
||
| 33 | } |
||
| 34 |