| Total Complexity | 4 | 
| Total Lines | 40 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 15 | trait AwsS3FsBuilderTrait  | 
            ||
| 16 | { | 
            ||
| 17 | /**  | 
            ||
| 18 | * @param string|null $name  | 
            ||
| 19 | *  | 
            ||
| 20 | * @return AwsS3Info  | 
            ||
| 21 | *  | 
            ||
| 22 | * @throws StorageException  | 
            ||
| 23 | */  | 
            ||
| 24 | protected function buildAwsS3Info(?string $name = self::SERVER_NAME): AwsS3Info  | 
            ||
| 27 | }  | 
            ||
| 28 | |||
| 29 | protected function buildAwsS3ServerDescription(): array  | 
            ||
| 30 |     { | 
            ||
| 31 | return [  | 
            ||
| 32 | AwsS3Info::ADAPTER_KEY => AwsS3V3Adapter::class,  | 
            ||
| 33 | AwsS3Info::OPTIONS_KEY => [  | 
            ||
| 34 | AwsS3Info::BUCKET_KEY => 'debugBucket',  | 
            ||
| 35 | AwsS3Info::CLIENT_KEY => $this->getAwsS3Client(),  | 
            ||
| 36 | ],  | 
            ||
| 37 | ];  | 
            ||
| 38 | }  | 
            ||
| 39 | |||
| 40 | protected function getAwsS3Client(): S3Client  | 
            ||
| 41 |     { | 
            ||
| 42 | return new S3Client([  | 
            ||
| 43 |             'credentials' => new Credentials('someKey', 'someSecret'), | 
            ||
| 44 | 'version' => 'latest',  | 
            ||
| 45 | 'region' => 'west',  | 
            ||
| 46 | ]);  | 
            ||
| 47 | }  | 
            ||
| 48 | |||
| 49 | protected function getAwsS3VisibilityOption(): array  | 
            ||
| 55 | ]  | 
            ||
| 56 | ];  | 
            ||
| 57 | }  | 
            ||
| 59 |