| Total Complexity | 2 |
| Total Lines | 11 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 13 | final class DigraphPrinter |
||
| 14 | { |
||
| 15 | 32 | public function __construct(private readonly TemplateEngine $engine, private readonly DigraphStyle $style) |
|
|
|
|||
| 16 | { |
||
| 17 | } |
||
| 18 | |||
| 19 | 27 | public function toDot(Digraph $digraph): string |
|
| 20 | { |
||
| 21 | 27 | return trim($this->engine->render('digraph.html.twig', [ |
|
| 22 | 'digraph' => $digraph, |
||
| 23 | 27 | 'style' => $this->style, |
|
| 24 | ])); |
||
| 27 |