Test Failed
Push — master ( b0844f...f87cd0 )
by
unknown
03:20
created

UserLegal::setCountryOfResidence()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
/**
3
 * Created by Graham Owens ([email protected])
4
 * Company: PartFire Ltd (www.partfire.co.uk)
5
 * Console: Discovery
6
 *
7
 * User:    gra
8
 * Date:    10/01/17
9
 * Time:    15:36
10
 * Project: PartFire MangoPay Bundle
11
 * File:    UserLegal.php
12
 *
13
 **/
14
15
namespace PartFire\MangoPayBundle\Models\DTOs;
16
17
use PartFire\MangoPayBundle\MangoPayConstants;
18
19
class UserLegal extends UserBase
20
{
21
    private $personType = MangoPayConstants::LEAGAL_PERSON_TYPE;
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
22
23
    private $firstName;
24
25
    private $lastName;
26
27
    private $legalRepresentativeBirthday;
28
29
    private $nationality;
30
31
    private $countryOfResidence;
32
33
    /**
34
     * @return string
35
     */
36
    public function getPersonType(): string
37
    {
38
        return $this->personType;
39
    }
40
41
    /**
42
     * @param string $personType
43
     */
44
    public function setPersonType(string $personType)
45
    {
46
        $this->personType = $personType;
47
    }
48
49
    /**
50
     * @return mixed
51
     */
52
    public function getFirstName()
53
    {
54
        return $this->firstName;
55
    }
56
57
    /**
58
     * @param mixed $firstName
59
     */
60
    public function setFirstName($firstName)
61
    {
62
        $this->firstName = $firstName;
63
    }
64
65
    /**
66
     * @return mixed
67
     */
68
    public function getLastName()
69
    {
70
        return $this->lastName;
71
    }
72
73
    /**
74
     * @param mixed $lastName
75
     */
76
    public function setLastName($lastName)
77
    {
78
        $this->lastName = $lastName;
79
    }
80
81
    /**
82
     * @return mixed
83
     */
84
    public function getLegalRepresentativeBirthday()
85
    {
86
        return $this->legalRepresentativeBirthday->format('U');
87
    }
88
89
    /**
90
     * @param mixed $legalRepresentativeBirthday
91
     */
92
    public function setLegalRepresentativeBirthday($legalRepresentativeBirthday)
93
    {
94
        $this->legalRepresentativeBirthday = $legalRepresentativeBirthday;
95
    }
96
97
    /**
98
     * @return mixed
99
     */
100
    public function getNationality()
101
    {
102
        return $this->nationality;
103
    }
104
105
    /**
106
     * @param mixed $nationality
107
     */
108
    public function setNationality($nationality)
109
    {
110
        $this->nationality = $nationality;
111
    }
112
113
    /**
114
     * @return mixed
115
     */
116
    public function getCountryOfResidence()
117
    {
118
        return $this->countryOfResidence;
119
    }
120
121
    /**
122
     * @param mixed $countryOfResidence
123
     */
124
    public function setCountryOfResidence($countryOfResidence)
125
    {
126
        $this->countryOfResidence = $countryOfResidence;
127
    }
128
129
130
131
}
132