public function disconnect(): self
    {
        if ($this->isConnected()) {
            pg_close($this->resource);
            $this->resource = null;
        }

        return $this;
    }
public function disconnect(): self
    {
        if ($this->isConnected()) {
            pg_close($this->resource);
            $this->resource = null;
        }

        return $this;
    }
public function disconnect ( ) : self { if ( $ this -> isConnected ( ) ) { pg_close ( $ this -> resource ) ; $ this -> resource = null ; } return $ this ; }
Disconnects from the database
Disconnects from the database