Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
11 | 6 | private function writeValue(ValueInterface $model): void { |
|
12 | 6 | if ($model->isExpression()) { |
|
13 | 4 | $this->writer->write($model->getExpression()); |
|
14 | } else { |
||
15 | 6 | $value = $model->getValue(); |
|
16 | |||
17 | 6 | if ($value instanceof PhpConstant) { |
|
18 | 3 | $this->writer->write($value->getName()); |
|
19 | } else { |
||
20 | 6 | $this->writer->write($this->exportVar($value)); |
|
21 | } |
||
22 | } |
||
23 | 6 | } |
|
24 | |||
34 |