Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class Member |
||
7 | { |
||
8 | private string $id; |
||
9 | private ?string $lastName; |
||
10 | private ?string $firstName; |
||
11 | private ?\DateTimeImmutable $birthDate; |
||
12 | |||
13 | public static function createFromResponse(\stdClass $response): self |
||
23 | } |
||
24 | |||
25 | public function getId(): string |
||
26 | { |
||
27 | return $this->id; |
||
28 | } |
||
29 | |||
30 | public function getLastName(): ?string |
||
31 | { |
||
32 | return $this->lastName; |
||
33 | } |
||
34 | |||
35 | public function getFirstName(): ?string |
||
36 | { |
||
37 | return $this->firstName; |
||
38 | } |
||
39 | |||
40 | public function getBirthDate(): ?\DateTimeImmutable |
||
43 | } |
||
44 | } |