| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class ExceptionFactory |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Returns an exception object. |
||
| 19 | * |
||
| 20 | * I'd rather deal with "physical" exceptions, so I created this class so that I can get actual objects. |
||
| 21 | * |
||
| 22 | * @param DynamoDbException $ex A DynamoDB exception. |
||
| 23 | * @return Exception The exception object. |
||
| 24 | */ |
||
| 25 | 12 | public static function factory(DynamoDbException $ex): Exception |
|
| 41 |