1 | <?php |
||
12 | class FlysystemDestination implements DestinationInterface |
||
13 | { |
||
14 | protected $flysystem; |
||
15 | |||
16 | protected $backups; |
||
17 | |||
18 | public function __construct(FilesystemInterface $flysystem) |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | public function push(BackupInterface $backup) |
||
30 | |||
31 | /** |
||
32 | * {@inheritdoc} |
||
33 | */ |
||
34 | public function get($key) |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function has($key) |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | public function delete($key) |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function all() |
||
82 | |||
83 | /** |
||
84 | * {@inheritdoc} |
||
85 | */ |
||
86 | public function getIterator() |
||
94 | |||
95 | /** |
||
96 | * Load backups from destination. |
||
97 | * |
||
98 | * @return BackupInterface[] |
||
99 | */ |
||
100 | protected function load() |
||
128 | } |