| Conditions | 2 |
| Paths | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 5 | public function generate(): string |
|
| 16 | { |
||
| 17 | 5 | $output = $this->generateHead(); |
|
| 18 | |||
| 19 | 5 | $output .= $this->generateLine('trait ' . $this->name . ($this->extends !== null ? ' extends \\' . ltrim($this->extends, '\\') : '')); |
|
| 20 | 5 | $output .= $this->generateLine('{'); |
|
| 21 | |||
| 22 | 5 | $output .= $this->generateConstants(); |
|
| 23 | 5 | $output .= $this->generateProperties(); |
|
| 24 | 5 | $output .= $this->generateMethods(); |
|
| 25 | |||
| 26 | 5 | $output .= $this->generateFoot(); |
|
| 27 | |||
| 28 | 5 | return $output; |
|
| 29 | } |
||
| 30 | } |
||
| 31 |