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 |
||
21 | 4 | public function execute(): CollectionInterface |
|
22 | { |
||
23 | try { |
||
24 | 4 | $results = $this->client->scan($this->toArray()); |
|
25 | 3 | $rows = []; |
|
26 | 3 | foreach ($results['Items'] as $item) { |
|
27 | 2 | $rows[] = $this->marshaler->unmarshalItem($item); |
|
28 | } |
||
29 | 3 | return Collection::make($rows)->limit($this->offset); |
|
30 | 1 | } catch (DynamoDbException $ex) { |
|
31 | 1 | throw ExceptionFactory::factory($ex); |
|
32 | } |
||
35 |