original_string: public function getDatabase($connectionName = 'default')
      {
          if ($this->databases->containsKey($connectionName)) {
              return $this->databases->get($connectionName);
          }
  
          $configuration = $this->getConfiguration($connectionName);
          $database = $this->getConnection($connectionName);
  
          $database->DBOpen(
              $configuration->getDatabase(),
              $configuration->getUser(),
              $configuration->getPassword()
          );
  
          $this->databases->set($connectionName, $database);
  
          return $this->databases->get($connectionName);
      }
code: public function getDatabase($connectionName = 'default')
      {
          if ($this->databases->containsKey($connectionName)) {
              return $this->databases->get($connectionName);
          }
  
          $configuration = $this->getConfiguration($connectionName);
          $database = $this->getConnection($connectionName);
  
          $database->DBOpen(
              $configuration->getDatabase(),
              $configuration->getUser(),
              $configuration->getPassword()
          );
  
          $this->databases->set($connectionName, $database);
  
          return $this->databases->get($connectionName);
      }
code_tokens: public function getDatabase ( $ connectionName = 'default' ) { if ( $ this -> databases -> containsKey ( $ connectionName ) ) { return $ this -> databases -> get ( $ connectionName ) ; } $ configuration = $ this -> getConfiguration ( $ connectionName ) ; $ database = $ this -> getConnection ( $ connectionName ) ; $ database -> DBOpen ( $ configuration -> getDatabase ( ) , $ configuration -> getUser ( ) , $ configuration -> getPassword ( ) ) ; $ this -> databases -> set ( $ connectionName , $ database ) ; return $ this -> databases -> get ( $ connectionName ) ; }
docstring: Return registered database under given name
  
  @param string $connectionName
  
  @return \OrientDB
docstring_tokens: Return registered database under given name