1 | <?php |
||
21 | class LaravelStorage implements Simulator |
||
22 | { |
||
23 | /** |
||
24 | * Laravel filesystem to sync to. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | private $filesystem; |
||
29 | |||
30 | /** |
||
31 | * Path to copy the backup. |
||
32 | * |
||
33 | * @var string |
||
34 | */ |
||
35 | private $path; |
||
36 | |||
37 | /** |
||
38 | * Setup the source. |
||
39 | * |
||
40 | * @param array $conf |
||
41 | * @throws \phpbu\App\Exception |
||
42 | */ |
||
43 | public function setup(array $conf = array()) |
||
51 | |||
52 | /** |
||
53 | * Execute the Sync |
||
54 | * Copy your backup to another location |
||
55 | * |
||
56 | * @param \phpbu\App\Backup\Target $target |
||
57 | * @param \phpbu\App\Result $result |
||
58 | */ |
||
59 | public function sync(Target $target, Result $result) |
||
73 | |||
74 | /** |
||
75 | * Simulate the sync execution. |
||
76 | * |
||
77 | * @param \phpbu\App\Backup\Target $target |
||
78 | * @param \phpbu\App\Result $result |
||
79 | */ |
||
80 | public function simulate(Target $target, Result $result) |
||
87 | } |
||
88 |