Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public static function becauseOfErrorResponse(int $responseCode, string $response, \Throwable $exception): self |
||
19 | { |
||
20 | $self = new static(sprintf( |
||
21 | 'Request to ISMP finished with error response and message "%s"', |
||
22 | $exception->getMessage() |
||
23 | ), 0, $exception); |
||
24 | |||
25 | $self->responseCode = $responseCode; |
||
26 | $self->response = $response; |
||
27 | |||
28 | return $self; |
||
29 | } |
||
30 | |||
41 |