UserLegal   A
last analyzed

Complexity

Total Complexity 29

Size/Duplication

Total Lines 261
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 29
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 261
rs 10

29 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getLegalPersonType() 0 4 1
A setLegalPersonType() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
A getHeadquartersAddress() 0 4 1
A setHeadquartersAddress() 0 4 1
A getLegalRepresentativeFirstName() 0 4 1
A setLegalRepresentativeFirstName() 0 4 1
A getLegalRepresentativeLastName() 0 4 1
A setLegalRepresentativeLastName() 0 4 1
A getLegalRepresentativeAddress() 0 4 1
A setLegalRepresentativeAddress() 0 4 1
A getLegalRepresentativeEmail() 0 4 1
A setLegalRepresentativeEmail() 0 4 1
A getLegalRepresentativeBirthday() 0 4 1
A setLegalRepresentativeBirthday() 0 4 1
A getLegalRepresentativeNationality() 0 4 1
A setLegalRepresentativeNationality() 0 4 1
A getLegalRepresentativeCountryOfResidence() 0 4 1
A setLegalRepresentativeCountryOfResidence() 0 4 1
A getProofOfIdentity() 0 4 1
A setProofOfIdentity() 0 4 1
A getStatute() 0 4 1
A setStatute() 0 4 1
A getProofOfRegistration() 0 4 1
A setProofOfRegistration() 0 4 1
A getShareholderDeclaration() 0 4 1
A setShareholderDeclaration() 0 4 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 $legalPersonType = MangoPayConstants::LEGAL_PERSON_TYPE_BUSINESS;
22
23
    private $name;
24
25
    private $headquartersAddress;
26
27
    private $legalRepresentativeFirstName;
28
29
    private $legalRepresentativeLastName;
30
31
    private $legalRepresentativeAddress;
32
33
    private $legalRepresentativeEmail;
34
35
    private $legalRepresentativeBirthday;
36
37
    private $legalRepresentativeNationality;
38
39
    private $legalRepresentativeCountryOfResidence;
40
41
    private $proofOfIdentity;
42
43
    private $statute;
44
45
    private $proofOfRegistration;
46
47
    private $shareholderDeclaration;
48
49
    public function __construct()
50
    {
51
        $this->setPersonType(MangoPayConstants::LEGAL_PERSON_TYPE);
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getLegalPersonType(): string
58
    {
59
        return $this->legalPersonType;
60
    }
61
62
    /**
63
     * @param string $legalPersonType
64
     */
65
    public function setLegalPersonType(string $legalPersonType)
66
    {
67
        $this->legalPersonType = $legalPersonType;
68
    }
69
70
    /**
71
     * @return mixed
72
     */
73
    public function getName()
74
    {
75
        return $this->name;
76
    }
77
78
    /**
79
     * @param mixed $name
80
     */
81
    public function setName($name)
82
    {
83
        $this->name = $name;
84
    }
85
86
    /**
87
     * @return mixed
88
     */
89
    public function getHeadquartersAddress()
90
    {
91
        return $this->headquartersAddress;
92
    }
93
94
    /**
95
     * @param mixed $headquartersAddress
96
     */
97
    public function setHeadquartersAddress($headquartersAddress)
98
    {
99
        $this->headquartersAddress = $headquartersAddress;
100
    }
101
102
    /**
103
     * @return mixed
104
     */
105
    public function getLegalRepresentativeFirstName()
106
    {
107
        return $this->legalRepresentativeFirstName;
108
    }
109
110
    /**
111
     * @param mixed $legalRepresentativeFirstName
112
     */
113
    public function setLegalRepresentativeFirstName($legalRepresentativeFirstName)
114
    {
115
        $this->legalRepresentativeFirstName = $legalRepresentativeFirstName;
116
    }
117
118
    /**
119
     * @return mixed
120
     */
121
    public function getLegalRepresentativeLastName()
122
    {
123
        return $this->legalRepresentativeLastName;
124
    }
125
126
    /**
127
     * @param mixed $legalRepresentativeLastName
128
     */
129
    public function setLegalRepresentativeLastName($legalRepresentativeLastName)
130
    {
131
        $this->legalRepresentativeLastName = $legalRepresentativeLastName;
132
    }
133
134
    /**
135
     * @return mixed
136
     */
137
    public function getLegalRepresentativeAddress()
138
    {
139
        return $this->legalRepresentativeAddress;
140
    }
141
142
    /**
143
     * @param mixed $legalRepresentativeAddress
144
     */
145
    public function setLegalRepresentativeAddress($legalRepresentativeAddress)
146
    {
147
        $this->legalRepresentativeAddress = $legalRepresentativeAddress;
148
    }
149
150
    /**
151
     * @return mixed
152
     */
153
    public function getLegalRepresentativeEmail()
154
    {
155
        return $this->legalRepresentativeEmail;
156
    }
157
158
    /**
159
     * @param mixed $legalRepresentativeEmail
160
     */
161
    public function setLegalRepresentativeEmail($legalRepresentativeEmail)
162
    {
163
        $this->legalRepresentativeEmail = $legalRepresentativeEmail;
164
    }
165
166
    /**
167
     * @return mixed
168
     */
169
    public function getLegalRepresentativeBirthday()
170
    {
171
        return $this->legalRepresentativeBirthday;
172
    }
173
174
    /**
175
     * @param mixed $legalRepresentativeBirthday
176
     */
177
    public function setLegalRepresentativeBirthday($legalRepresentativeBirthday)
178
    {
179
        $this->legalRepresentativeBirthday = $legalRepresentativeBirthday;
180
    }
181
182
    /**
183
     * @return mixed
184
     */
185
    public function getLegalRepresentativeNationality()
186
    {
187
        return $this->legalRepresentativeNationality;
188
    }
189
190
    /**
191
     * @param mixed $legalRepresentativeNationality
192
     */
193
    public function setLegalRepresentativeNationality($legalRepresentativeNationality)
194
    {
195
        $this->legalRepresentativeNationality = $legalRepresentativeNationality;
196
    }
197
198
    /**
199
     * @return mixed
200
     */
201
    public function getLegalRepresentativeCountryOfResidence()
202
    {
203
        return $this->legalRepresentativeCountryOfResidence;
204
    }
205
206
    /**
207
     * @param mixed $legalRepresentativeCountryOfResidence
208
     */
209
    public function setLegalRepresentativeCountryOfResidence($legalRepresentativeCountryOfResidence)
210
    {
211
        $this->legalRepresentativeCountryOfResidence = $legalRepresentativeCountryOfResidence;
212
    }
213
214
    /**
215
     * @return mixed
216
     */
217
    public function getProofOfIdentity()
218
    {
219
        return $this->proofOfIdentity;
220
    }
221
222
    /**
223
     * @param mixed $proofOfIdentity
224
     */
225
    public function setProofOfIdentity($proofOfIdentity)
226
    {
227
        $this->proofOfIdentity = $proofOfIdentity;
228
    }
229
230
    /**
231
     * @return mixed
232
     */
233
    public function getStatute()
234
    {
235
        return $this->statute;
236
    }
237
238
    /**
239
     * @param mixed $statute
240
     */
241
    public function setStatute($statute)
242
    {
243
        $this->statute = $statute;
244
    }
245
246
    /**
247
     * @return mixed
248
     */
249
    public function getProofOfRegistration()
250
    {
251
        return $this->proofOfRegistration;
252
    }
253
254
    /**
255
     * @param mixed $proofOfRegistration
256
     */
257
    public function setProofOfRegistration($proofOfRegistration)
258
    {
259
        $this->proofOfRegistration = $proofOfRegistration;
260
    }
261
262
    /**
263
     * @return mixed
264
     */
265
    public function getShareholderDeclaration()
266
    {
267
        return $this->shareholderDeclaration;
268
    }
269
270
    /**
271
     * @param mixed $shareholderDeclaration
272
     */
273
    public function setShareholderDeclaration($shareholderDeclaration)
274
    {
275
        $this->shareholderDeclaration = $shareholderDeclaration;
276
    }
277
278
279
}
280