original_string: public function registerDbConnection()
      {
          if (!is_string($this->module->dbComponent) && !is_array($this->module->dbComponent)) {
              throw new InvalidConfigException('Invalid value for the dbComponent parameter.');
          }
          if (is_array($this->module->dbComponent)) {
              $this->module->set('podium_db', $this->module->dbComponent);
          }
      }
code: public function registerDbConnection()
      {
          if (!is_string($this->module->dbComponent) && !is_array($this->module->dbComponent)) {
              throw new InvalidConfigException('Invalid value for the dbComponent parameter.');
          }
          if (is_array($this->module->dbComponent)) {
              $this->module->set('podium_db', $this->module->dbComponent);
          }
      }
code_tokens: public function registerDbConnection ( ) { if ( ! is_string ( $ this -> module -> dbComponent ) && ! is_array ( $ this -> module -> dbComponent ) ) { throw new InvalidConfigException ( 'Invalid value for the dbComponent parameter.' ) ; } if ( is_array ( $ this -> module -> dbComponent ) ) { $ this -> module -> set ( 'podium_db' , $ this -> module -> dbComponent ) ; } }
docstring: Registers DB connection.
  @throws InvalidConfigException
docstring_tokens: Registers DB connection .