Conditions | 3 |
Paths | 5 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | 2 | public function execute(): array |
|
16 | { |
||
17 | try { |
||
18 | 2 | $results = $this->client->getItem($this->toArray()); |
|
19 | 1 | $item = []; |
|
20 | 1 | if (is_array($results['Item'])) { |
|
21 | 1 | $item = $this->marshaler->unmarshalItem($results['Item']); |
|
|
|||
22 | } |
||
23 | 1 | return $item; |
|
24 | 1 | } catch (DynamoDbException $ex) { |
|
25 | 1 | throw new Exception($ex->getMessage()); |
|
26 | } |
||
29 |