private function schemaApiTypeToPropertyInfoType($type)
    {
        switch ($type) {

          case 'serial':
          case 'int':
              return new Type(Type::BUILTIN_TYPE_INT, true);

          case 'float':
          case 'numeric':
            return new Type(Type::BUILTIN_TYPE_FLOAT, true);

          case 'varchar':
          case 'text':
          case 'blob':
              return new Type(Type::BUILTIN_TYPE_STRING, true);
        }
    }
private function schemaApiTypeToPropertyInfoType($type)
    {
        switch ($type) {

          case 'serial':
          case 'int':
              return new Type(Type::BUILTIN_TYPE_INT, true);

          case 'float':
          case 'numeric':
            return new Type(Type::BUILTIN_TYPE_FLOAT, true);

          case 'varchar':
          case 'text':
          case 'blob':
              return new Type(Type::BUILTIN_TYPE_STRING, true);
        }
    }
private function schemaApiTypeToPropertyInfoType ( $ type ) { switch ( $ type ) { case 'serial' : case 'int' : return new Type ( Type :: BUILTIN_TYPE_INT , true ) ; case 'float' : case 'numeric' : return new Type ( Type :: BUILTIN_TYPE_FLOAT , true ) ; case 'varchar' : case 'text' : case 'blob' : return new Type ( Type :: BUILTIN_TYPE_STRING , true ) ; } }
Convert schema API type to property info type

@param string $type

@return null|Type
Convert schema API type to property info type