| Conditions | 5 |
| Paths | 16 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | 3 | public static function create(array $data): self |
|
| 36 | { |
||
| 37 | 3 | $model = new self(); |
|
| 38 | 3 | $model->parsed = (isset($data['parsed']) && is_array($data['parsed'])) ? $data['parsed'] : []; |
|
| 39 | 3 | $model->unparseable = (isset($data['unparseable']) && is_array($data['unparseable'])) ? $data['unparseable'] : []; |
|
| 40 | |||
| 41 | 3 | return $model; |
|
| 42 | } |
||
| 43 | |||
| 54 |