original_string: protected function databaseInfo()
      {
          $pdo = $this->database->getConnection()->getPdo();
  
          $version = $this->ifExists($pdo->getAttribute(PDO::ATTR_SERVER_VERSION));
  
          $driver = $this->ifExists($pdo->getAttribute(PDO::ATTR_DRIVER_NAME));
          $driver = $this->ifExists((! empty($this->databases[$driver]) ? $this->databases[$driver] : null));
  
          $this->results['database'] = compact('driver', 'version');
  
          return $this;
      }
code: protected function databaseInfo()
      {
          $pdo = $this->database->getConnection()->getPdo();
  
          $version = $this->ifExists($pdo->getAttribute(PDO::ATTR_SERVER_VERSION));
  
          $driver = $this->ifExists($pdo->getAttribute(PDO::ATTR_DRIVER_NAME));
          $driver = $this->ifExists((! empty($this->databases[$driver]) ? $this->databases[$driver] : null));
  
          $this->results['database'] = compact('driver', 'version');
  
          return $this;
      }
code_tokens: protected function databaseInfo ( ) { $ pdo = $ this -> database -> getConnection ( ) -> getPdo ( ) ; $ version = $ this -> ifExists ( $ pdo -> getAttribute ( PDO :: ATTR_SERVER_VERSION ) ) ; $ driver = $ this -> ifExists ( $ pdo -> getAttribute ( PDO :: ATTR_DRIVER_NAME ) ) ; $ driver = $ this -> ifExists ( ( ! empty ( $ this -> databases [ $ driver ] ) ? $ this -> databases [ $ driver ] : null ) ) ; $ this -> results [ 'database' ] = compact ( 'driver' , 'version' ) ; return $ this ; }
docstring: Get database info.
  
  @access protected
docstring_tokens: Get database info .