| Conditions | 4 |
| Paths | 8 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public static function createFromArray(array $data) |
||
| 45 | { |
||
| 46 | $profiles = isset($data['data']['profiles']) ? $data['data']['profiles'] : []; |
||
| 47 | $strong = isset($data['data']['description']['strong']) ? $data['data']['description']['strong'] : []; |
||
| 48 | $week = isset($data['data']['description']['weak']) ? $data['data']['description']['weak'] : []; |
||
| 49 | |||
| 50 | return new self($profiles, $strong, $week); |
||
| 51 | } |
||
| 52 | |||
| 77 |