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