Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | protected function json_handle() |
||
26 | { |
||
27 | parent::json_handle(); |
||
28 | |||
29 | if (!isset($this->json['data']['id'])) |
||
30 | { |
||
31 | throw new Exception\JSON('data does not contain the id field!'); |
||
32 | } |
||
33 | |||
34 | $this->id = $this->json['data']['id']; |
||
35 | |||
36 | if (!isset($this->json['data']['paymentPageUrl'])) |
||
37 | { |
||
38 | throw new Exception\JSON('data does not contain the paymentPageUrl field!'); |
||
39 | } |
||
40 | |||
41 | $this->paymentPageUrl = $this->json['data']['paymentPageUrl']; |
||
42 | } |
||
64 |