Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
24 | public static function with(RequestInterface $request, Throwable $previousException = null): self |
||
25 | { |
||
26 | $self = new self( |
||
27 | 'Response could no be evaluated.', |
||
28 | StatusCodeInterface::STATUS_INTERNAL_SERVER_ERROR, |
||
29 | $previousException |
||
30 | ); |
||
31 | $self->request = $request; |
||
32 | return $self; |
||
33 | } |
||
40 |