public function disconnect() : void
    {
        if ($this->dbconn->inTransaction()) {
            $this->dbconn->rollBack();
        }
        $this->dbconn = null;
        $this->is_connected = false;
    }
public function disconnect() : void
    {
        if ($this->dbconn->inTransaction()) {
            $this->dbconn->rollBack();
        }
        $this->dbconn = null;
        $this->is_connected = false;
    }
public function disconnect ( ) : void { if ( $ this -> dbconn -> inTransaction ( ) ) { $ this -> dbconn -> rollBack ( ) ; } $ this -> dbconn = null ; $ this -> is_connected = false ; }
Close the connection if it has been established.
Close the connection if it has been established .