Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | public static function createFromResponse(\stdClass $response): self |
||
16 | { |
||
17 | $group = new self(); |
||
18 | |||
19 | $group->id = $response->guid; |
||
20 | $group->name = $response->naam; |
||
21 | $group->category = $response->categorie; |
||
22 | $group->region = $response->regioNaam; |
||
23 | $group->regionId = $response->regioGUID; |
||
24 | $group->teams = GroupTeamCollection::createFromArrayResponse($response->teams); |
||
25 | |||
26 | return $group; |
||
27 | } |
||
59 |