| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public static function createFromResponse(\stdClass $response): self |
||
| 17 | { |
||
| 18 | $team = new self(); |
||
| 19 | |||
| 20 | $team->id = $response->guid; |
||
| 21 | $team->name = $response->naam; |
||
| 22 | $team->category = $response->categorie; |
||
| 23 | $team->clubId = $response->organisationGUID; |
||
| 24 | $team->shirtColor = $response->shirtKleur; |
||
| 25 | $team->shirtReserveColor = $response->shirtReserve; |
||
| 26 | $team->groups = ClubTeamGroupCollection::createFromArrayResponse($response->poules); |
||
| 27 | |||
| 28 | return $team; |
||
| 29 | } |
||
| 65 | } |