| Conditions | 3 |
| Paths | 4 |
| Total Lines | 7 |
| Code Lines | 4 |
| 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 | $description = isset($data['data']['description']) ? $data['data']['description'] : ''; |
||
| 48 | |||
| 49 | return new self($profiles, $description, $data['data']['complete']); |
||
| 50 | } |
||
| 51 | |||
| 90 |