| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | 89 | public static function factory($columnDefinition, TypeInterface $type) |
|
| 49 | { |
||
| 50 | 89 | $name = $columnDefinition['column_name']; |
|
| 51 | 89 | $hasDefault = $columnDefinition['column_default'] !== null; |
|
| 52 | 89 | $isNullable = $columnDefinition['is_nullable'] === true || $columnDefinition['is_nullable'] === 'YES'; |
|
| 53 | 89 | return new static($name, $type, $hasDefault, $isNullable); |
|
| 54 | } |
||
| 55 | |||
| 88 |