| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 145 | 2 | public static function createFromArray(array $data) |
|
| 146 | { |
||
| 147 | 2 | $contact = new self(); |
|
| 148 | 2 | $contact->name = $data['name'] ?? null; |
|
| 149 | 2 | $contact->email = $data['email'] ?? null; |
|
| 150 | 2 | $contact->phone = $data['phone'] ?? null; |
|
| 151 | 2 | $contact->www = $data['www'] ?? null; |
|
| 152 | |||
| 153 | 2 | return $contact; |
|
| 154 | } |
||
| 155 | } |
||
| 156 |