public function remoteDirectory($directory, $physical = false)
    {
        $this->remoteDir = $directory;
        $this->physicalRemoteDir = $physical;

        return $this;
    }
public function remoteDirectory($directory, $physical = false)
    {
        $this->remoteDir = $directory;
        $this->physicalRemoteDir = $physical;

        return $this;
    }
public function remoteDirectory ( $ directory , $ physical = false ) { $ this -> remoteDir = $ directory ; $ this -> physicalRemoteDir = $ physical ; return $ this ; }
Sets the remote directory.

@param string $directory
The remote directory.
@param bool $physical
Use the physical directory structure without following symbolic links
(-P argument for cd).

@return $this
Sets the remote directory .