Total Complexity | 7 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class PayerName |
||
6 | { |
||
7 | private ?string $givenName = null; |
||
8 | private ?string $surname = null; |
||
9 | |||
10 | 1 | public function getGivenName(): ?string |
|
11 | { |
||
12 | 1 | return $this->givenName; |
|
13 | } |
||
14 | |||
15 | 7 | public function setGivenName(?string $givenName): self |
|
20 | } |
||
21 | |||
22 | 1 | public function getSurname(): ?string |
|
25 | } |
||
26 | |||
27 | 3 | public function setSurname(?string $surname): self |
|
28 | { |
||
29 | 3 | $this->surname = $surname; |
|
30 | |||
31 | 3 | return $this; |
|
32 | } |
||
33 | |||
34 | 7 | public function toArray(): array |
|
47 | } |
||
48 | } |
||
49 |