| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | protected function exportInstantiation(ColumnMetadata $metadata) : string |
||
| 38 | { |
||
| 39 | assert($metadata instanceof FieldMetadata); |
||
| 40 | |||
| 41 | $lines = []; |
||
| 42 | $lines[] = sprintf( |
||
| 43 | 'new Mapping\FieldMetadata("%s", "%s", Type::getType("%s"));', |
||
| 44 | $metadata->getName(), |
||
| 45 | $metadata->getColumnName(), |
||
| 46 | $metadata->getTypeName() |
||
| 47 | ); |
||
| 48 | |||
| 49 | return implode(PHP_EOL, $lines); |
||
| 50 | } |
||
| 52 |