public function getConnection()
    {
        if ($this->connection) {
            return $this->connection;
        }

        return $this->connection = new SFTP($this->host, $this->port, $this->timeout);
    }
public function getConnection()
    {
        if ($this->connection) {
            return $this->connection;
        }

        return $this->connection = new SFTP($this->host, $this->port, $this->timeout);
    }
public function getConnection ( ) { if ( $ this -> connection ) { return $ this -> connection ; } return $ this -> connection = new SFTP ( $ this -> host , $ this -> port , $ this -> timeout ) ; }
Get the underlying SFTP connection.

@return \phpseclib\Net\SFTP
Get the underlying SFTP connection .