Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function extractFrom(InterfaceDefinition $interface): array |
||
28 | { |
||
29 | $dotElements = []; |
||
30 | |||
31 | $dotElements[] = new Node($interface, $this->labelBuilder->forInterface($interface)); |
||
32 | |||
33 | if ($interface->hasParent()) { |
||
34 | $dotElements[] = Edge::inheritance($interface->extends, $interface); |
||
35 | } |
||
36 | |||
37 | return $dotElements; |
||
38 | } |
||
40 |