Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | 6 | public function __construct(Digraph $digraph = null) |
|
19 | { |
||
20 | 6 | $this->options = new plGraphvizProcessorOptions(); |
|
21 | 6 | $labelBuilder = new NodeLabelBuilder(new TemplateEngine( |
|
22 | 6 | new FileSystem(__DIR__ . '/../../Graphviz/templates') |
|
23 | 6 | ), new HtmlLabelStyle()); |
|
24 | 6 | $classElements = new ClassGraphElements($this->options->createAssociations, $labelBuilder); |
|
|
|||
25 | 6 | $interfaceElements = new InterfaceGraphElements($labelBuilder); |
|
26 | 6 | $this->digraph = $digraph ?? new Digraph($interfaceElements, $classElements); |
|
27 | 6 | } |
|
51 |