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