code: public function registerObjectType($module)
      {
          if (!Yii::$app->isDbAvailable) {
              return false;
          }
          $systemId = $module->systemId;
  
          if (!isset($this->tableRegistry[$systemId])) {
              $objectTypeClass = Yii::$app->classes['ObjectTypeRegistry'];
              $this->_tableRegistry[$systemId] = new $objectTypeClass();
              $this->_tableRegistry[$systemId]->name = $systemId;
              $this->_tableRegistry[$systemId]->system_version = $module->version;
              if (!$this->_tableRegistry[$systemId]->save()) {
                  unset($this->_tableRegistry[$systemId]);
  
                  return false;
              }
              $module->objectTypeModel = $this->_tableRegistry[$systemId];
              if (!$module->setup()) {
                  $this->_tableRegistry[$systemId]->delete();
                  unset($this->_tableRegistry[$systemId]);
  
                  return false;
              }
          }
  
          if (isset($this->_tableRegistry[$systemId])) {
              $module->objectTypeModel = $this->_tableRegistry[$systemId];
          }
  
          return true;
      }
docs: [[@doctodo method_description:registerObjectType]].
  
  @param [[@doctodo param_type:module]] $module [[@doctodo param_description:module]]
  
  @return [[@doctodo return_type:registerObjectType]] [[@doctodo return_description:registerObjectType]]