Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | 4 | public function __construct(GuzzleResponseInterface $response = null, $message = '', Exception $previous = null) |
|
32 | { |
||
33 | 4 | $message = "The contents of the response could not be determined. {$message}" . |
|
34 | 4 | ($response ? "\n Body:\n" . $response->getBody()->getContents() : ''); |
|
35 | |||
36 | 4 | $this->response = $response; |
|
37 | |||
38 | 4 | parent::__construct($message, 0, $previous); |
|
39 | 4 | } |
|
49 |