Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
23 | public function export($value, int $indentationLevel = 0) : string |
||
24 | { |
||
25 | /** @var FieldMetadata $value */ |
||
26 | $variableExporter = new VariableExporter(); |
||
27 | $indentation = str_repeat(self::INDENTATION, $indentationLevel); |
||
28 | $objectReference = $indentation . self::VARIABLE; |
||
29 | |||
30 | $lines = []; |
||
31 | $lines[] = parent::export($value, $indentationLevel); |
||
32 | $lines[] = $objectReference . '->setVersioned(' . ltrim($variableExporter->export($value->isVersioned(), $indentationLevel + 1)) . ');'; |
||
33 | |||
34 | return implode(PHP_EOL, $lines); |
||
35 | } |
||
52 |