/** * This method will return a native type that corresponds to the specified * Creole (JDBC-like) type. * If there is more than one matching native type, then the LAST defined * native type will be returned. * @param int $creoleType * @return string Native type string. */ public static function getNativeType($creoleType) { if (self::$reverseMap === null) { self::$reverseMap = array_flip(self::$typeMap); } return @self::$reverseMap[$creoleType]; }