ClubTeamGroup   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 9
c 1
b 0
f 0
dl 0
loc 23
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 3 1
A getName() 0 3 1
A createFromResponse() 0 8 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Eekes\VblApi\Entity;
5
6
class ClubTeamGroup
7
{
8
    private string $id;
9
    private string $name;
10
11
    public static function createFromResponse(\stdClass $response): self
12
    {
13
        $group = new self();
14
15
        $group->id = $response->guid;
16
        $group->name = $response->naam;
17
18
        return $group;
19
    }
20
21
    public function getId(): string
22
    {
23
        return $this->id;
24
    }
25
26
    public function getName(): string
27
    {
28
        return $this->name;
29
    }
30
}
31