1 | <?php |
||
24 | class AzureBlob extends Remote implements Collector |
||
25 | { |
||
26 | /** |
||
27 | * @var \MicrosoftAzure\Storage\Blob\BlobRestProxy |
||
28 | */ |
||
29 | protected $client; |
||
30 | |||
31 | /** |
||
32 | * Azure Blob Storage Container name |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | protected $containerName; |
||
37 | |||
38 | /** |
||
39 | * Amazon S3 constructor. |
||
40 | * |
||
41 | * @param \phpbu\App\Backup\Target $target |
||
42 | * @param \phpbu\App\Backup\Path $path |
||
43 | * @param \MicrosoftAzure\Storage\Blob\BlobRestProxy $client |
||
44 | * @param string $containerName |
||
45 | */ |
||
46 | 3 | public function __construct(Target $target, Path $path, BlobRestProxy $client, string $containerName) |
|
52 | |||
53 | /** |
||
54 | * Collect all created backups. |
||
55 | */ |
||
56 | 3 | protected function collectBackups() |
|
74 | |||
75 | /** |
||
76 | * Return prefix for querying remote files and folders |
||
77 | * |
||
78 | * @param string $path |
||
79 | * @return string |
||
80 | */ |
||
81 | 3 | protected function getPrefix($path): string |
|
87 | } |
||
88 |