| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public static function createFromResponse(\stdClass $response): self |
||
| 15 | { |
||
| 16 | $team = new self(); |
||
| 17 | |||
| 18 | $team->id = $response->guid; |
||
| 19 | $team->name = $response->naam; |
||
| 20 | $team->groups = GroupCollection::createFromArrayResponse($response->poules); |
||
| 21 | $team->players = PlayerCollection::createFromArrayResponse($response->spelers ?? []); |
||
| 22 | $team->staff = StaffCollection::createFromArrayResponse($response->tvlijst ?? []); |
||
| 23 | |||
| 24 | return $team; |
||
| 25 | } |
||
| 51 | } |