| Conditions | 3 |
| Paths | 4 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 41 | public function code(int $indentation = 0) : string |
||
| 42 | { |
||
| 43 | $code = $this->indentation($indentation) |
||
| 44 | . $this->visibility |
||
| 45 | . ' ' |
||
| 46 | . ($this->isStatic ? 'static ' : '') |
||
| 47 | . '$' |
||
| 48 | . $this->name |
||
| 49 | . ';'; |
||
| 50 | |||
| 51 | // Add comments |
||
| 52 | if (array_key_exists(CommentsGenerator::class, $this->generatedCode)) { |
||
| 53 | $code = $this->generatedCode[CommentsGenerator::class] . "\n" . $code; |
||
| 54 | } |
||
| 55 | |||
| 56 | return $code; |
||
| 57 | } |
||
| 58 | } |
||
| 59 |