1 | <?php |
||
20 | abstract class Sync implements Simulator |
||
21 | { |
||
22 | /** |
||
23 | * Setup the Sync object with all xml options. |
||
24 | * |
||
25 | * @param array $options |
||
26 | */ |
||
27 | abstract public function setup(array $options); |
||
28 | |||
29 | /** |
||
30 | * Execute the Sync |
||
31 | * Copy your backup to another location |
||
32 | * |
||
33 | * @param \phpbu\App\Backup\Target $target |
||
34 | * @param \phpbu\App\Result $result |
||
35 | */ |
||
36 | abstract public function sync(Target $target, Result $result); |
||
37 | |||
38 | /** |
||
39 | * Make sure all mandatory keys are present in given config. |
||
40 | * |
||
41 | * @param array $config |
||
42 | * @param array $keys |
||
43 | * @throws Exception |
||
44 | */ |
||
45 | 30 | protected function validateConfig(array $config, array $keys) |
|
53 | } |
||
54 |