| 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 | 2 | public function __construct($message = '', $code = 400, array $body = []) |
|
| 10 | { |
||
| 11 | 2 | parent::__construct($message, $code, $body); |
|
| 12 | 2 | if (!empty($body['data']['error']['message'])) { |
|
| 13 | 2 | $this->message = $body['data']['error']['message']; |
|
| 14 | } |
||
| 15 | 2 | if (!empty($body['data']['error']['data'])) { |
|
| 16 | 2 | $this->details = $body['data']['error']['data']; |
|
| 17 | } |
||
| 25 |