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: UserNatural.php |
12
|
|
|
* |
13
|
|
|
**/ |
14
|
|
|
|
15
|
|
|
namespace PartFire\MangoPayBundle\Models\DTOs; |
16
|
|
|
|
17
|
|
|
use PartFire\MangoPayBundle\MangoPayConstants; |
18
|
|
|
|
19
|
|
|
class UserNatural extends UserBase |
20
|
|
|
{ |
21
|
|
|
private $firstName; |
22
|
|
|
|
23
|
|
|
private $lastName; |
24
|
|
|
|
25
|
|
|
private $birthday; |
26
|
|
|
|
27
|
|
|
private $nationality; |
28
|
|
|
|
29
|
|
|
private $countryOfResidence; |
30
|
|
|
|
31
|
|
|
private $occupation; |
32
|
|
|
|
33
|
|
|
private $incomeRange; |
34
|
|
|
|
35
|
|
|
private $address; |
36
|
|
|
|
37
|
|
|
public function __construct() |
38
|
|
|
{ |
39
|
|
|
$this->setPersonType(MangoPayConstants::NATURAL_PERSON_TYPE); |
40
|
|
|
} |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @return mixed |
44
|
|
|
*/ |
45
|
|
|
public function getFirstName() |
46
|
|
|
{ |
47
|
|
|
return $this->firstName; |
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @param mixed $firstName |
52
|
|
|
*/ |
53
|
|
|
public function setFirstName($firstName) |
54
|
|
|
{ |
55
|
|
|
$this->firstName = $firstName; |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @return mixed |
60
|
|
|
*/ |
61
|
|
|
public function getLastName() |
62
|
|
|
{ |
63
|
|
|
return $this->lastName; |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @param mixed $lastName |
68
|
|
|
*/ |
69
|
|
|
public function setLastName($lastName) |
70
|
|
|
{ |
71
|
|
|
$this->lastName = $lastName; |
72
|
|
|
} |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @return mixed |
76
|
|
|
*/ |
77
|
|
|
public function getBirthday() |
78
|
|
|
{ |
79
|
|
|
return $this->birthday; |
80
|
|
|
} |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* @param mixed $birthday |
84
|
|
|
*/ |
85
|
|
|
public function setBirthday($birthday) |
86
|
|
|
{ |
87
|
|
|
$this->birthday = $birthday; |
88
|
|
|
} |
89
|
|
|
|
90
|
|
|
/** |
91
|
|
|
* @return mixed |
92
|
|
|
*/ |
93
|
|
|
public function getNationality() |
94
|
|
|
{ |
95
|
|
|
return $this->nationality; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @param mixed $nationality |
100
|
|
|
*/ |
101
|
|
|
public function setNationality($nationality) |
102
|
|
|
{ |
103
|
|
|
$this->nationality = $nationality; |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @return mixed |
108
|
|
|
*/ |
109
|
|
|
public function getCountryOfResidence() |
110
|
|
|
{ |
111
|
|
|
return $this->countryOfResidence; |
112
|
|
|
} |
113
|
|
|
|
114
|
|
|
/** |
115
|
|
|
* @param mixed $countryOfResidence |
116
|
|
|
*/ |
117
|
|
|
public function setCountryOfResidence($countryOfResidence) |
118
|
|
|
{ |
119
|
|
|
$this->countryOfResidence = $countryOfResidence; |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
/** |
123
|
|
|
* @return mixed |
124
|
|
|
*/ |
125
|
|
|
public function getOccupation() |
126
|
|
|
{ |
127
|
|
|
return $this->occupation; |
128
|
|
|
} |
129
|
|
|
|
130
|
|
|
/** |
131
|
|
|
* @param mixed $occupation |
132
|
|
|
*/ |
133
|
|
|
public function setOccupation($occupation) |
134
|
|
|
{ |
135
|
|
|
$this->occupation = $occupation; |
136
|
|
|
} |
137
|
|
|
|
138
|
|
|
/** |
139
|
|
|
* @return mixed |
140
|
|
|
*/ |
141
|
|
|
public function getIncomeRange() |
142
|
|
|
{ |
143
|
|
|
return $this->incomeRange; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* @param mixed $incomeRange |
148
|
|
|
*/ |
149
|
|
|
public function setIncomeRange($incomeRange) |
150
|
|
|
{ |
151
|
|
|
$this->incomeRange = $incomeRange; |
152
|
|
|
} |
153
|
|
|
|
154
|
|
|
/** |
155
|
|
|
* @return mixed |
156
|
|
|
*/ |
157
|
|
|
public function getAddress() : Address |
158
|
|
|
{ |
159
|
|
|
return $this->address; |
160
|
|
|
} |
161
|
|
|
|
162
|
|
|
/** |
163
|
|
|
* @param mixed $address |
164
|
|
|
*/ |
165
|
|
|
public function setAddress(Address $address) |
166
|
|
|
{ |
167
|
|
|
$this->address = $address; |
168
|
|
|
} |
169
|
|
|
|
170
|
|
|
|
171
|
|
|
|
172
|
|
|
} |
173
|
|
|
|