1 | <?php |
||
8 | class AmazonS3v3 extends Collector |
||
9 | { |
||
10 | /** |
||
11 | * @var S3Client |
||
12 | */ |
||
13 | protected $client; |
||
14 | |||
15 | /** |
||
16 | * AmazonS3 bucket name |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $bucket; |
||
21 | |||
22 | /** |
||
23 | * AmazonS3 remote path |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $path; |
||
28 | |||
29 | /** |
||
30 | * OpenStack constructor. |
||
31 | * |
||
32 | * @param \phpbu\App\Backup\Target $target |
||
33 | * @param S3Client $client |
||
34 | * @param string $bucket |
||
35 | * @param string $path |
||
36 | */ |
||
37 | public function __construct(Target $target, S3Client $client, string $bucket, string $path) |
||
44 | |||
45 | /** |
||
46 | * Get all created backups. |
||
47 | * |
||
48 | * @return \phpbu\App\Backup\File[] |
||
49 | */ |
||
50 | public function getBackupFiles(): array |
||
74 | } |