| 1 | <?php |
||
| 19 | abstract class AbstractProtocol |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $executable = ""; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Shortcut to set options from array config |
||
| 28 | * |
||
| 29 | * @param array $options |
||
| 30 | * @param $name |
||
| 31 | * @param $method |
||
| 32 | */ |
||
| 33 | protected function setOption(Array $options, $name, $method) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Sets rsync executable location, i.e.: /usr/bin/rsync |
||
| 42 | * |
||
| 43 | * @param $rsyncLocation |
||
| 44 | * |
||
| 45 | * @throws \InvalidArgumentException If the rsync location is not executable |
||
| 46 | */ |
||
| 47 | public function setExecutable($rsyncLocation) |
||
| 55 | } |
||
| 56 |