Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function __construct(array $jsonResponse, $message = "", $code = 0, Throwable $previous = null) |
||
12 | { |
||
13 | parent::__construct($message, $code, $previous); |
||
14 | |||
15 | $this->jsonResponse = $jsonResponse; |
||
16 | |||
17 | if (isset($jsonResponse['ErrorText'])) |
||
18 | { |
||
19 | $this->message = $jsonResponse['ErrorText']; |
||
20 | } |
||
21 | } |
||
22 | |||
41 |