Conditions | 4 |
Paths | 8 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
24 | 1 | public function init() : void |
|
25 | { |
||
26 | 1 | if (isset($this->data->status)) { |
|
27 | 1 | $this->status = (int)$this->data->status; |
|
28 | } |
||
29 | |||
30 | 1 | if (isset($this->data->stat)) { |
|
31 | 1 | $this->stat = new Stat($this->data->stat); |
|
32 | } |
||
33 | |||
34 | 1 | if (isset($this->data->details)) { |
|
35 | 1 | $this->details = new Details($this->data->details); |
|
36 | } |
||
37 | 1 | } |
|
38 | |||
73 |