| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 15 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | 6 | public function parse(\stdClass $object): Contact |
|
| 12 | { |
||
| 13 | 6 | return new Contact( |
|
| 14 | 6 | $object->contactId, |
|
| 15 | 6 | $object->firstName, |
|
| 16 | 6 | $object->prefix, |
|
| 17 | 6 | $object->lastName, |
|
| 18 | 6 | $object->email, |
|
| 19 | 6 | $object->phone, |
|
| 20 | 6 | $object->organisation ?? $object->organization, |
|
| 21 | 6 | $object->parentSituationId, |
|
| 22 | 6 | $object->function, |
|
| 23 | 6 | $object->publicPhone, |
|
| 24 | 6 | $object->active, |
|
| 25 | 6 | $object->createdById, |
|
| 26 | 6 | $object->changedById |
|
| 27 | 3 | ); |
|
| 30 |