Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
10 | 21 | public function __construct(ResponseInterface $response) |
|
11 | { |
||
12 | 21 | $body = json_decode($response->getBody(), true); |
|
13 | 21 | $message = isset($body['message']) ? $body['message'] : $response->getReasonPhrase(); |
|
14 | 21 | parent::__construct($message, $response->getStatusCode()); |
|
15 | 21 | } |
|
16 | } |
||
17 |