Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function __construct($json, $httpStatusCode) |
||
21 | { |
||
22 | $this->message = "Returned $httpStatusCode"; |
||
23 | if ($json) { |
||
24 | $this->message = $json->message; |
||
25 | if (isset($json->logref)) { |
||
26 | $this->message = "$json->message [logref $json->logref]"; |
||
27 | } |
||
28 | |||
29 | } |
||
30 | |||
31 | $this->code = $httpStatusCode; |
||
32 | } |
||
33 | } |
||
34 |