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