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