Conditions | 3 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3.0987 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | 1 | public function __invoke(ValidationException $e): ContractErrorInterface |
|
19 | { |
||
20 | 1 | return new ContractError( |
|
21 | 1 | $e->getMessage(), |
|
22 | 1 | Response::HTTP_UNPROCESSABLE_ENTITY, |
|
23 | 1 | self::formatErrors(...$e->getErrors()), |
|
24 | 1 | $e->getTrace() |
|
25 | ); |
||
26 | } |
||
27 | |||
28 | 1 | public static function getExceptionClass(): string |
|
29 | { |
||
45 |