Conditions | 4 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4.1755 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | 2 | public function __construct(stdClass $data, bool $isBase64) |
|
25 | { |
||
26 | 2 | parent::__construct($data, 'get_documentsResult'); |
|
27 | 2 | $this->success = boolval($this->get('success')); |
|
28 | 2 | $this->contract = strval($this->get('contract')); |
|
29 | 2 | $this->privacy = strval($this->get('privacy')); |
|
30 | 2 | $this->error = strval($this->get('error')); |
|
31 | 2 | if ($isBase64) { |
|
32 | $this->contract = base64_decode($this->contract) ?: ''; |
||
33 | $this->privacy = base64_decode($this->privacy) ?: ''; |
||
34 | } |
||
57 |