private function getConnection()
    {
        if (!isset($this->connection)) {
            $config = new Configuration();

            $this->connection = DriverManager::getConnection($this->connectionParams, $config);
        }

        return $this->connection;
    }
private function getConnection()
    {
        if (!isset($this->connection)) {
            $config = new Configuration();

            $this->connection = DriverManager::getConnection($this->connectionParams, $config);
        }

        return $this->connection;
    }
private function getConnection ( ) { if ( ! isset ( $ this -> connection ) ) { $ config = new Configuration ( ) ; $ this -> connection = DriverManager :: getConnection ( $ this -> connectionParams , $ config ) ; } return $ this -> connection ; }
Returns the connection object.

@return Connection
Returns the connection object .