Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | 4 | public function generate(): string |
|
15 | { |
||
16 | // Extends |
||
17 | 4 | $extends = ''; |
|
18 | 4 | if (!empty($this->extends)) { |
|
19 | 3 | $extends = ' extends '.join(', ', $this->extends); |
|
20 | } |
||
21 | |||
22 | return <<<CODE |
||
23 | 4 | {$this->buildDocBlock()}interface $this->name{$extends} |
|
24 | { |
||
25 | 4 | {$this->generateContent()} |
|
26 | } |
||
65 |