Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.2098 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | 8 | public function execute(): bool |
|
19 | { |
||
20 | try { |
||
21 | 8 | $this->client->deleteTable($this->toArray()); |
|
22 | //$this->client->waitUntil('TableExists', ['TableName' => $this->tableName]); |
||
23 | 7 | return true; |
|
24 | 1 | } catch (DynamoDbException $ex) { |
|
25 | 1 | throw new Exception($ex->getMessage()); |
|
26 | } catch (InvalidArgumentException $ex) { |
||
27 | throw new Exception('Bad key schema: ' . $ex->getMessage()); |
||
28 | } |
||
31 |