| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 30 | 13 | public function extractFrom(InterfaceDefinition $interface, Codebase $codebase): array |
|
| 31 | { |
||
| 32 | 13 | $dotElements = []; |
|
| 33 | |||
| 34 | 13 | $dotElements[] = new Node($interface); |
|
| 35 | |||
| 36 | 13 | foreach ($interface->parents() as $parent) { |
|
| 37 | 2 | $dotElements[] = Edge::inheritance($codebase->get($parent), $interface); |
|
| 38 | } |
||
| 39 | |||
| 40 | 13 | return $dotElements; |
|
| 41 | } |
||
| 43 |