| Conditions | 5 |
| Paths | 5 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | private function typecast(AbstractColumn $column) |
||
| 45 | { |
||
| 46 | switch ($column->getType()) { |
||
| 47 | case AbstractColumn::BOOL: |
||
| 48 | return 'bool'; |
||
| 49 | case AbstractColumn::INT: |
||
| 50 | return 'int'; |
||
| 51 | case AbstractColumn::FLOAT: |
||
| 52 | return 'float'; |
||
| 53 | } |
||
| 54 | |||
| 55 | if (in_array($column->getAbstractType(), ['datetime', 'date', 'time'])) { |
||
| 56 | return 'datetime'; |
||
| 57 | } |
||
| 58 | |||
| 59 | return null; |
||
| 60 | } |
||
| 61 | } |