Completed
Push — master ( 98fc75...1c7a02 )
by Rémy
03:43
created

Customer::getCreditCard()   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 0
1
<?php
2
3
namespace XoteliaClient\Model;
4
5
use JMS\Serializer\Annotation as Serializer;
6
7
/**
8
 * @Serializer\ExclusionPolicy("all")
9
 */
10
class Customer
11
{
12
    /**
13
     * @Serializer\Expose()
14
     * @Serializer\Type("string")
15
     *
16
     * @var string
17
     */
18
    protected $lastName;
19
20
    /**
21
     * @Serializer\Expose()
22
     * @Serializer\Type("string")
23
     *
24
     * @var string
25
     */
26
    protected $firstName;
27
28
    /**
29
     * Phone number
30
     *
31
     * @Serializer\Expose()
32
     * @Serializer\Type("string")
33
     *
34
     * @var string
35
     */
36
    protected $number;
37
38
    /**
39
     * @Serializer\Expose()
40
     * @Serializer\Type("string")
41
     *
42
     * @var string
43
     */
44
    protected $email;
45
46
    /**
47
     * (optional)
48
     *
49
     * @Serializer\Expose()
50
     * @Serializer\Type("array")
51
     *
52
     * @var array
53
     */
54
    protected $creditCard;
55
56
    /**
57
     * @Serializer\Expose()
58
     * @Serializer\Type("string")
59
     *
60
     * @var string
61
     */
62
    protected $city;
63
64
    /**
65
     * @Serializer\Expose()
66
     * @Serializer\Type("string")
67
     *
68
     * @var string
69
     */
70
    protected $streetNumber;
71
72
    /**
73
     * @Serializer\Expose()
74
     * @Serializer\Type("string")
75
     *
76
     * @var string
77
     */
78
    protected $line1;
79
80
    /**
81
     * @Serializer\Expose()
82
     * @Serializer\Type("string")
83
     *
84
     * @var string
85
     */
86
    protected $line2;
87
88
    /**
89
     * @Serializer\Expose()
90
     * @Serializer\Type("string")
91
     *
92
     * @var string
93
     */
94
    protected $zipCode;
95
96
    /**
97
     * @Serializer\Expose()
98
     * @Serializer\Type("string")
99
     *
100
     * @var string
101
     */
102
    protected $countryCode;
103
104
    /**
105
     * @Serializer\Expose()
106
     * @Serializer\Type("string")
107
     *
108
     * @var string
109
     */
110
    protected $comment;
111
112
    /**
113
     * @param string $firstName
114
     *
115
     * @return $this
116
     */
117
    public function setFirstName($firstName)
118
    {
119
        $this->firstName = $firstName;
120
121
        return $this;
122
    }
123
124
    /**
125
     * @param string $lastName
126
     *
127
     * @return $this
128
     */
129
    public function setLastName($lastName)
130
    {
131
        $this->lastName = $lastName;
132
133
        return $this;
134
    }
135
136
    /**
137
     * @param $number
138
     *
139
     * @return $this
140
     */
141
    public function setNumber($number)
142
    {
143
        $this->number = $number;
144
145
        return $this;
146
    }
147
148
    /**
149
     * @param $email
150
     *
151
     * @return $this
152
     */
153
    public function setEmail($email)
154
    {
155
        $this->email = $email;
156
157
        return $this;
158
    }
159
160
    /**
161
     * @return string
162
     */
163
    public function getFirstName()
164
    {
165
        return $this->firstName;
166
    }
167
168
    /**
169
     * @return string
170
     */
171
    public function getLastName()
172
    {
173
        return $this->lastName;
174
    }
175
176
    /**
177
     * @return string
178
     */
179
    public function getNumber()
180
    {
181
        return $this->number;
182
    }
183
184
    /**
185
     * @return string
186
     */
187
    public function getEmail()
188
    {
189
        return $this->email;
190
    }
191
192
    /**
193
     * @return string
194
     */
195
    public function getComment()
196
    {
197
        return $this->comment;
198
    }
199
200
    /**
201
     * @param string $comment
202
     *
203
     * @return $this
204
     */
205
    public function setComment($comment)
206
    {
207
        $this->comment = $comment;
208
209
        return $this;
210
    }
211
212
    /**
213
     * @return string
214
     */
215
    public function getCity()
216
    {
217
        return $this->city;
218
    }
219
220
    /**
221
     * @param string $city
222
     *
223
     * @return $this
224
     */
225
    public function setCity($city)
226
    {
227
        $this->city = $city;
228
229
        return $this;
230
    }
231
232
    /**
233
     * @return string
234
     */
235
    public function getStreetNumber()
236
    {
237
        return $this->streetNumber;
238
    }
239
240
    /**
241
     * @param string $streetNumber
242
     *
243
     * @return $this
244
     */
245
    public function setStreetNumber($streetNumber)
246
    {
247
        $this->streetNumber = $streetNumber;
248
249
        return $this;
250
    }
251
252
    /**
253
     * @return string
254
     */
255
    public function getLine1()
256
    {
257
        return $this->line1;
258
    }
259
260
    /**
261
     * @param string $line1
262
     *
263
     * @return $this
264
     */
265
    public function setLine1($line1)
266
    {
267
        $this->line1 = $line1;
268
269
        return $this;
270
    }
271
272
    /**
273
     * @return string
274
     */
275
    public function getLine2()
276
    {
277
        return $this->line2;
278
    }
279
280
    /**
281
     * @param string $line2
282
     *
283
     * @return $this
284
     */
285
    public function setLine2($line2)
286
    {
287
        $this->line2 = $line2;
288
289
        return $this;
290
    }
291
292
    /**
293
     * @return string
294
     */
295
    public function getZipCode()
296
    {
297
        return $this->zipCode;
298
    }
299
300
    /**
301
     * @param string $zipCode
302
     *
303
     * @return $this
304
     */
305
    public function setZipCode($zipCode)
306
    {
307
        $this->zipCode = $zipCode;
308
309
        return $this;
310
    }
311
312
    /**
313
     * @return string
314
     */
315
    public function getCountryCode()
316
    {
317
        return $this->countryCode;
318
    }
319
320
    /**
321
     * @param string $countryCode
322
     *
323
     * @return $this
324
     */
325
    public function setCountryCode($countryCode)
326
    {
327
        $this->countryCode = $countryCode;
328
329
        return $this;
330
    }
331
332
    /**
333
     * @return array
334
     */
335
    public function getCreditCard()
336
    {
337
        return $this->creditCard;
338
    }
339
340
    /**
341
     * @param array $creditCard
342
     *
343
     * @return $this
344
     */
345
    public function setCreditCard(array $creditCard)
346
    {
347
        $this->creditCard = $creditCard;
348
349
        return $this;
350
    }
351
}
352