| Conditions | 4 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public static function getFieldTypes(QueryStatement $statement): array { |
||
| 12 | $fieldTypes = []; |
||
| 13 | for($i = 0; $column = $statement->getColumnMeta($i); $i++) { |
||
| 14 | $name = $column['name'] ?? null; |
||
| 15 | $nativeType = $column['native_type'] ?? null; |
||
| 16 | if(is_string($name) && is_string($nativeType)) { |
||
| 17 | $fieldTypes[$name] = self::getTypeFromNativeType($nativeType); |
||
| 18 | } |
||
| 19 | } |
||
| 20 | return $fieldTypes; |
||
| 21 | } |
||
| 44 |