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

Recipient::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 0
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 2
rs 10
ccs 0
cts 0
cp 0
crap 2
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