| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | 8 | public function build(AbstractModel $model): void { |
|
| 14 | 8 | $this->buildDocblock($model); |
|
| 15 | |||
| 16 | 8 | $this->writer->write($model->getVisibility() . ' '); |
|
| 17 | 8 | $this->writer->write($model->isStatic() ? 'static ' : ''); |
|
| 18 | 8 | $this->writer->write('$' . $model->getName()); |
|
| 19 | |||
| 20 | 8 | if ($model->hasValue()) { |
|
| 21 | 3 | $this->writer->write(' = '); |
|
| 22 | 3 | $this->writeValue($model); |
|
| 23 | } |
||
| 24 | |||
| 25 | 8 | $this->writer->writeln(';'); |
|
| 26 | 8 | } |
|
| 27 | |||
| 29 |