Failed Conditions
Pull Request — master (#138)
by Adrien
01:50
created

Recipient   A

Complexity

Total Complexity 11

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Test Coverage

Coverage 88.24%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 15
c 1
b 0
f 0
dl 0
loc 62
rs 10
ccs 15
cts 17
cp 0.8824
wmc 11

11 Methods

Rating   Name   Duplication   Size   Complexity  
A getIdentification() 0 3 1
A getContactDetails() 0 3 1
A getAddress() 0 3 1
A __construct() 0 2 1
A setIdentification() 0 3 1
A getName() 0 3 1
A setCountryOfResidence() 0 3 1
A setContactDetails() 0 3 1
A getCountryOfResidence() 0 3 1
A setAddress() 0 3 1
A setName() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Genkgo\Camt\DTO;
6
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
62 23
    {
63
        return $this->identification;
64
    }
65
66
    public function setIdentification(Identification $identification): void
67
    {
68
        $this->identification = $identification;
69
    }
70
}
71