Completed
Pull Request — master (#26)
by Yann
02:54
created

Recipient::getAddress()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
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
     * @return Address|null
29
     */
30 3
    public function getAddress()
31
    {
32 3
        return $this->address;
33
    }
34
    
35
    /**
36
     * @param Address|null
37
     */
38 16
    public function setAddress(Address $address)
39
    {
40 16
        $this->address = $address;
41 16
    }
42
43
    /**
44
     * @return string|null
45
     */
46 3
    public function getName()
47
    {
48 3
        return $this->name;
49
    }
50
    
51
    /**
52
     * @param string $name
53
     */
54 16
    public function setName($name)
55
    {
56 16
        $this->name = $name;
57 16
    }
58
59
    /**
60
     * @return string|null
61
     */
62 3
    public function getCountryOfResidence()
63
    {
64 3
        return $this->countryOfResidence;
65
    }
66
    
67
    /**
68
     * @param string $countryOfResidence
69
     */
70 16
    public function setCountryOfResidence($countryOfResidence)
71
    {
72 16
        $this->countryOfResidence = $countryOfResidence;
73 16
    }
74
75
    /**
76
     * @return ContactDetails|null
77
     */
78
    public function getContactDetails()
79
    {
80
        return $this->contactDetails;
81
    }
82
    
83
    /**
84
     * @param ContactDetails $contactDetails
85
     */
86
    public function setContactDetails(ContactDetails $contactDetails)
87
    {
88
        $this->contactDetails = $contactDetails;
89
    }
90
}
91