original_string: public function setConnection($pHost, $pName, $pUser = NULL, $pPassword = NULL)
      {
          $this->_connection = $this->connect($pHost, $pName, $pUser, $pPassword);
          $this->_dbName = $pName;
          return $this;
      }
code: public function setConnection($pHost, $pName, $pUser = NULL, $pPassword = NULL)
      {
          $this->_connection = $this->connect($pHost, $pName, $pUser, $pPassword);
          $this->_dbName = $pName;
          return $this;
      }
code_tokens: public function setConnection ( $ pHost , $ pName , $ pUser = NULL , $ pPassword = NULL ) { $ this -> _connection = $ this -> connect ( $ pHost , $ pName , $ pUser , $ pPassword ) ; $ this -> _dbName = $ pName ; return $ this ; }
docstring: Connect to database and register the connection.
  
  @param string $pHost
  @param string $pName
  @param null|string $pUser
  @param null|string $pPassword
  @return Db
docstring_tokens: Connect to database and register the connection .