| Conditions | 3 |
| Paths | 9 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | 3 | public function execute(): CollectionInterface |
|
| 18 | { |
||
| 19 | try { |
||
| 20 | 3 | $results = $this->client->scan($this->toArray()); |
|
| 21 | 2 | $rows = []; |
|
| 22 | 2 | foreach ($results['Items'] as $item) { |
|
| 23 | 1 | $rows[] = $this->marshaler->unmarshalItem($item); |
|
| 24 | } |
||
| 25 | 2 | return Collection::make($rows); |
|
| 26 | 1 | } catch (DynamoDbException $ex) { |
|
| 27 | 1 | throw new Exception($ex->getMessage()); |
|
| 28 | } |
||
| 31 |