| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public static function fromArray(array $data): self |
||
| 17 | { |
||
| 18 | return new self( |
||
| 19 | HourlyRateDto::fromArray($data['hourlyRate']), |
||
| 20 | $data['id'], |
||
| 21 | $data['imageUrl'], |
||
| 22 | array_map( |
||
| 23 | static function(array $data): MembershipDto { |
||
| 24 | return MembershipDto::fromArray($data); |
||
| 25 | }, |
||
| 26 | $data['memberships'] |
||
| 27 | ), |
||
| 28 | $data['name'], |
||
| 29 | WorkspaceSettingsDto::fromArray($data['workspaceSettings']) |
||
| 30 | ); |
||
| 85 |