Passed
Push — master ( 5addfc...e8c424 )
by Manuel
59s queued 11s
created

Address::setCountrySubdivisionCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Ticketpark\SaferpayJson\Request\Container;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
use JMS\Serializer\Annotation\Type;
7
8
final class Address
9
{
10
    const GENDER_MALE = 'MALE';
11
    const GENDER_FEMALE = 'FEMALE';
12
    const GENDER_DIVERSE = 'DIVERSE';
13
    const GENDER_COMPANY = 'COMPANY';
14
15
    /**
16
     * @var string|null
17
     * @SerializedName("FirstName")
18
     */
19
    private $firstName;
20
21
    /**
22
     * @var string|null
23
     * @SerializedName("LastName")
24
     */
25
    private $lastName;
26
27
    /**
28
     * @var string|null
29
     * @SerializedName("Company")
30
     */
31
    private $company;
32
33
    /**
34
     * @var string|null
35
     * @SerializedName("Gender")
36
     */
37
    private $gender;
38
39
    /**
40
     * @var string|null
41
     * @SerializedName("Street")
42
     */
43
    private $street;
44
45
    /**
46
     * @var string|null
47
     * @SerializedName("Zip")
48
     */
49
    private $zip;
50
51
    /**
52
     * @var string|null
53
     * @SerializedName("City")
54
     */
55
    private $city;
56
57
    /**
58
     * @var string|null
59
     * @SerializedName("CountryCode")
60
     */
61
    private $countryCode;
62
63
    /**
64
     * @var string|null
65
     * @SerializedName("Email")
66
     */
67
    private $email;
68
69
    /**
70
     * @var \DateTime|null
71
     * @SerializedName("DateOfBirth")
72
     */
73
    private $dateOfBirth;
74
75
    /**
76
     * @var string|null
77
     * @SerializedName("LegalForm")
78
     */
79
    private $legalForm;
80
81
    /**
82
     * @var string|null
83
     * @SerializedName("Street2")
84
     */
85
    private $street2;
86
87
    /**
88
     * @var string|null
89
     * @SerializedName("CountrySubdivisionCode")
90
     */
91
    private $countrySubdivisionCode;
92
93
    /**
94
     * @var string|null
95
     * @SerializedName("Phone")
96
     */
97
    private $phone;
98
99
    public function getFirstName(): ?string
100
    {
101
        return $this->firstName;
102
    }
103
104
    public function setFirstName(?string $firstName): self
105
    {
106
        $this->firstName = $firstName;
107
108
        return $this;
109
    }
110
111
    public function getLastName(): ?string
112
    {
113
        return $this->lastName;
114
    }
115
116
    public function setLastName(?string $lastName): self
117
    {
118
        $this->lastName = $lastName;
119
120
        return $this;
121
    }
122
123
    public function getCompany(): ?string
124
    {
125
        return $this->company;
126
    }
127
128
    public function setCompany(?string $company): self
129
    {
130
        $this->company = $company;
131
132
        return $this;
133
    }
134
135
    public function getGender(): ?string
136
    {
137
        return $this->gender;
138
    }
139
140
    public function setGender(?string $gender): self
141
    {
142
        $this->gender = $gender;
143
144
        return $this;
145
    }
146
147
    public function getStreet(): ?string
148
    {
149
        return $this->street;
150
    }
151
152
    public function setStreet(?string $street): self
153
    {
154
        $this->street = $street;
155
156
        return $this;
157
    }
158
159
    public function getZip(): ?string
160
    {
161
        return $this->zip;
162
    }
163
164
    public function setZip(?string $zip): self
165
    {
166
        $this->zip = $zip;
167
168
        return $this;
169
    }
170
171
    public function getCity(): ?string
172
    {
173
        return $this->city;
174
    }
175
176
    public function setCity(?string $city): self
177
    {
178
        $this->city = $city;
179
180
        return $this;
181
    }
182
183
    public function getCountryCode(): ?string
184
    {
185
        return $this->countryCode;
186
    }
187
188
    public function setCountryCode(?string $countryCode): self
189
    {
190
        $this->countryCode = $countryCode;
191
192
        return $this;
193
    }
194
195
    public function getEmail(): ?string
196
    {
197
        return $this->email;
198
    }
199
200
    public function setEmail(?string $email): self
201
    {
202
        $this->email = $email;
203
204
        return $this;
205
    }
206
207
    public function getDateOfBirth(): ?\DateTime
208
    {
209
        return $this->dateOfBirth;
210
    }
211
212
    public function setDateOfBirth(?\DateTime $dateOfBirth): self
213
    {
214
        $this->dateOfBirth = $dateOfBirth;
215
216
        return $this;
217
    }
218
219
    public function getLegalForm(): ?string
220
    {
221
        return $this->legalForm;
222
    }
223
224
    public function setLegalForm(?string $legalForm): self
225
    {
226
        $this->legalForm = $legalForm;
227
228
        return $this;
229
    }
230
231
    public function getStreet2(): ?string
232
    {
233
        return $this->street2;
234
    }
235
236
    public function setStreet2(?string $street2): self
237
    {
238
        $this->street2 = $street2;
239
240
        return $this;
241
    }
242
243
    public function getCountrySubdivisionCode(): ?string
244
    {
245
        return $this->countrySubdivisionCode;
246
    }
247
248
    public function setCountrySubdivisionCode(?string $countrySubdivisionCode): self
249
    {
250
        $this->countrySubdivisionCode = $countrySubdivisionCode;
251
252
        return $this;
253
    }
254
255
    public function getPhone(): ?string
256
    {
257
        return $this->phone;
258
    }
259
260
    public function setPhone(?string $phone): self
261
    {
262
        $this->phone = $phone;
263
264
        return $this;
265
    }
266
}
267