Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class AwsS3Builder extends AbstractBuilder |
||
22 | { |
||
23 | protected const FILE_SYSTEM_INFO_CLASS = AwsS3Info::class; |
||
24 | |||
25 | /** |
||
26 | * @inheritDoc |
||
27 | */ |
||
28 | public function buildSimple(): FilesystemAdapter |
||
29 | { |
||
30 | $adapterClass = $this->fsInfo->getAdapterClass(); |
||
31 | |||
32 | return new $adapterClass( |
||
33 | $this->fsInfo->getClient(), |
||
|
|||
34 | $this->fsInfo->getOption(AwsS3Info::BUCKET_KEY) |
||
35 | ); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @inheritDoc |
||
40 | */ |
||
41 | public function buildAdvanced(): FilesystemAdapter |
||
52 | ); |
||
53 | } |
||
55 |