| Conditions | 2 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2.108 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 1 | public function handle(array $params = []): Result |
|
| 32 | { |
||
| 33 | 1 | $bucketName = $params[ 'bucket' ]; |
|
| 34 | |||
| 35 | try { |
||
| 36 | 1 | $result = $this->client->getConn()->getBucketLifecycle([ |
|
| 37 | 1 | 'Bucket' => $bucketName |
|
| 38 | 1 | ]); |
|
| 39 | |||
| 40 | 1 | $this->commandHandlerLogger?->log($this, sprintf('LifeCycleConfiguration of \'%s\' bucket was successfully obtained', $bucketName)); |
|
| 41 | |||
| 42 | 1 | return $result; |
|
| 43 | } catch (S3Exception $e) { |
||
| 44 | $this->commandHandlerLogger?->logExceptionAndReturnFalse($e); |
||
| 45 | |||
| 46 | throw $e; |
||
| 47 | } |
||
| 60 |