Completed
Pull Request — master (#27)
by Yann
02:57
created

Recipient::setIdentification()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Genkgo\Camt\DTO;
4
5
class Recipient implements RelatedPartyTypeInterface
6
{
7
    /**
8
     * @var Address|null
9
     */
10
    private $address;
11
12
    /**
13
     * @var string|null
14
     */
15
    private $name;
16
17
    /**
18
     * @var string|null
19
     */
20
    private $countryOfResidence;
21
22
    /**
23
     * @var ContactDetails|null
24
     */
25
    private $contactDetails;
26
27
    /**
28
     * @var Identification|null
29
     */
30
    private $identification;
31
32
    /**
33
     * @return Address|null
34
     */
35 3
    public function getAddress()
36
    {
37 3
        return $this->address;
38
    }
39
    
40
    /**
41
     * @param Address|null
42
     */
43 17
    public function setAddress(Address $address)
44
    {
45 17
        $this->address = $address;
46 17
    }
47
48
    /**
49
     * @return string|null
50
     */
51 3
    public function getName()
52
    {
53 3
        return $this->name;
54
    }
55
    
56
    /**
57
     * @param string $name
58
     */
59 17
    public function setName($name)
60
    {
61 17
        $this->name = $name;
62 17
    }
63
64
    /**
65
     * @return string|null
66
     */
67 3
    public function getCountryOfResidence()
68
    {
69 3
        return $this->countryOfResidence;
70
    }
71
    
72
    /**
73
     * @param string $countryOfResidence
74
     */
75 17
    public function setCountryOfResidence($countryOfResidence)
76
    {
77 17
        $this->countryOfResidence = $countryOfResidence;
78 17
    }
79
80
    /**
81
     * @return ContactDetails|null
82
     */
83
    public function getContactDetails()
84
    {
85
        return $this->contactDetails;
86
    }
87
    
88
    /**
89
     * @param ContactDetails $contactDetails
90
     */
91
    public function setContactDetails(ContactDetails $contactDetails)
92
    {
93
        $this->contactDetails = $contactDetails;
94
    }
95
96
    /**
97
     * @return Identification|null
98
     */
99 3
    public function getIdentification()
100
    {
101 3
        return $this->identification;
102
    }
103
    
104
    /**
105
     * @param Identification $identification
106
     */
107 17
    public function setIdentification(Identification $identification)
108
    {
109 17
        $this->identification = $identification;
110 17
    }
111
}
112