Conditions | 3 |
Paths | 4 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | 1 | public function __construct($message = '', $code = 400, array $body = []) |
|
10 | { |
||
11 | 1 | parent::__construct($message, $code, $body); |
|
12 | 1 | if (!empty($body['data']['message'])) { |
|
13 | 1 | $this->message = $body['data']['message']; |
|
14 | } |
||
15 | 1 | if (!empty($body['data']['details']['errors'])) { |
|
16 | 1 | $this->details = $body['data']['details']['errors']; |
|
17 | } |
||
25 |