Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function extractFrom(InterfaceDefinition $interface): array |
||
39 | { |
||
40 | $dotElements = []; |
||
41 | |||
42 | $dotElements[] = new Node($interface, $this->labelBuilder->forInterface($interface)); |
||
43 | |||
44 | if ($interface->hasParent()) { |
||
45 | $dotElements[] = Edge::inheritance($interface->extends, $interface); |
||
46 | } |
||
47 | |||
48 | return $dotElements; |
||
49 | } |
||
51 |