original_string: protected function getNewConnection($connections)
      {
          $connection = $this->ApplicationContext->object($this->DatabaseServiceName);
          $connection->setConnectionInfo($connections);
          return $connection;
      }
code: protected function getNewConnection($connections)
      {
          $connection = $this->ApplicationContext->object($this->DatabaseServiceName);
          $connection->setConnectionInfo($connections);
          return $connection;
      }
code_tokens: protected function getNewConnection ( $ connections ) { $ connection = $ this -> ApplicationContext -> object ( $ this -> DatabaseServiceName ) ; $ connection -> setConnectionInfo ( $ connections ) ; return $ connection ; }
docstring: Gets a new connection using the connection info given
  
  @param array $connectionInfo An array of connection info
  
  @return DatabaseInterface
docstring_tokens: Gets a new connection using the connection info given