]> _ Git - cubist_util.git/commitdiff
wip #5700 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 26 Jan 2023 15:36:35 +0000 (16:36 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 26 Jan 2023 15:36:35 +0000 (16:36 +0100)
src/CommandLine/Rclone.php [new file with mode: 0644]

diff --git a/src/CommandLine/Rclone.php b/src/CommandLine/Rclone.php
new file mode 100644 (file)
index 0000000..d93c1e5
--- /dev/null
@@ -0,0 +1,60 @@
+<?php
+
+namespace Cubist\Util\CommandLine;
+
+use Cubist\Util\CommandLine;
+
+class Rclone extends CommandLine
+{
+    protected $_prog = '/usr/bin/rclone';
+    /**
+     * @var string
+     */
+    protected $_src;
+    /**
+     * @var string
+     */
+    protected $_dest;
+    /**
+     * @var bool
+     */
+    protected $_mirror = false;
+
+    public function __construct($output = null, $error = true)
+    {
+        parent::__construct($this->_prog, $output, $error);
+    }
+
+    public function getSrc()
+    {
+        return $this->_src;
+    }
+
+    public function getDest()
+    {
+        return $this->_dest;
+    }
+
+    public function getMirror()
+    {
+        return $this->_mirror;
+    }
+
+    public function setSrc($src)
+    {
+        $this->_src = $src;
+        return $this;
+    }
+
+    public function setDest($dest)
+    {
+        $this->_dest = $dest;
+        return $this;
+    }
+
+    public function setMirror($mirror)
+    {
+        $this->_mirror = $mirror;
+        return $this;
+    }
+}
\ No newline at end of file