Total Complexity | 11 |
Total Lines | 62 |
Duplicated Lines | 0 % |
Coverage | 88.24% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class Recipient implements RelatedPartyTypeInterface |
||
8 | { |
||
9 | private ?Address $address = null; |
||
10 | |||
11 | private ?string $countryOfResidence = null; |
||
12 | |||
13 | private ?ContactDetails $contactDetails = null; |
||
14 | |||
15 | private ?Identification $identification = null; |
||
16 | |||
17 | public function __construct(private ?string $name = null) |
||
18 | { |
||
19 | } |
||
20 | |||
21 | public function getAddress(): ?Address |
||
22 | { |
||
23 | return $this->address; |
||
24 | } |
||
25 | |||
26 | public function setAddress(Address $address): void |
||
27 | { |
||
28 | $this->address = $address; |
||
29 | } |
||
30 | |||
31 | public function getName(): ?string |
||
32 | { |
||
33 | return $this->name; |
||
34 | 3 | } |
|
35 | |||
36 | 3 | public function setName(string $name): void |
|
37 | { |
||
38 | $this->name = $name; |
||
39 | 23 | } |
|
40 | |||
41 | 23 | public function getCountryOfResidence(): ?string |
|
42 | 23 | { |
|
43 | return $this->countryOfResidence; |
||
44 | 3 | } |
|
45 | |||
46 | 3 | public function setCountryOfResidence(string $countryOfResidence): void |
|
47 | { |
||
48 | $this->countryOfResidence = $countryOfResidence; |
||
49 | 23 | } |
|
50 | |||
51 | 23 | public function getContactDetails(): ?ContactDetails |
|
52 | 23 | { |
|
53 | return $this->contactDetails; |
||
54 | 3 | } |
|
55 | |||
56 | 3 | public function setContactDetails(ContactDetails $contactDetails): void |
|
57 | { |
||
58 | $this->contactDetails = $contactDetails; |
||
59 | 23 | } |
|
60 | |||
61 | 23 | public function getIdentification(): ?Identification |
|
64 | } |
||
65 | |||
66 | public function setIdentification(Identification $identification): void |
||
67 | { |
||
69 | } |
||
70 | } |
||
71 |