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