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