Gaufrette\Adapter\Sftp::__construct PHP Method

__construct() public method

public __construct ( Ssh\Sftp $sftp, string $directory = null, boolean $create = false )
$sftp Ssh\Sftp An Sftp instance
$directory string The distant directory
$create boolean Whether to create the remote directory if it does not exist
    public function __construct(SftpClient $sftp, $directory = null, $create = false)
    {
        $this->sftp = $sftp;
        $this->directory = $directory;
        $this->create = $create;
    }