Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function makeField(string $tableName, array $field, Column $column): array |
||
23 | { |
||
24 | if (isset(FieldGenerator::$fieldTypeMap[$field['type']])) { |
||
25 | $field['type'] = FieldGenerator::$fieldTypeMap[$field['type']]; |
||
26 | } |
||
27 | |||
28 | $collation = $this->collationModifier->generate($tableName, $column); |
||
29 | if ($collation !== '') { |
||
30 | $field['decorators'][] = $collation; |
||
31 | } |
||
32 | |||
33 | return $field; |
||
34 | } |
||
36 |