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