| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | public static function create($column) |
||
| 18 | { |
||
| 19 | $name = $column['name']; |
||
| 20 | $type = $column['type']; |
||
| 21 | $type = ($type instanceof DoctrineType) ? $type : DoctrineType::getType(trim($type['name'])); |
||
| 22 | |||
| 23 | $options = array_diff_key($column, ['name' => $name, 'type' => $type]); |
||
| 24 | |||
| 25 | $DoctrineColumn = new DoctrineColumn($name, $type, $options); |
||
| 26 | |||
| 27 | return $DoctrineColumn; |
||
| 28 | } |
||
| 51 |