*/
protected $_mirror = false;
+ /**
+ * @var bool
+ */
+ protected $_dryRun = false;
+
+ /**
+ * @var string
+ */
+ protected $_protocol='local';
+
+ protected $_rcloneArgs = [];
+
public function __construct($output = null, $error = true)
{
parent::__construct($this->_prog, $output, $error);
$this->_mirror = $mirror;
return $this;
}
+
+ public function setRcloneArg($name, $value = null)
+ {
+ $this->_rcloneArgs[] = [$name, $value];
+ }
+
+ /**
+ * @param bool $dryRun
+ */
+ public function setDryRun(bool $dryRun): void
+ {
+ $this->_dryRun = $dryRun;
+ }
+
+ /**
+ * @return string
+ */
+ public function getProtocol(): string
+ {
+ return $this->_protocol;
+ }
+
+ /**
+ * @param string $protocol
+ */
+ public function setProtocol(string $protocol): void
+ {
+ $this->_protocol = $protocol;
+ }
+
+ /**
+ * @return bool
+ */
+ public function isDryRun(): bool
+ {
+ return $this->_dryRun;
+ }
}
\ No newline at end of file