PersonalData::getStreet()   A
last analyzed

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
 *
4
 * NOTICE OF LICENSE
5
 *
6
 * This source file is subject to the GNU General Public License (GPL 3)
7
 * that is bundled with this package in the file LICENSE.txt
8
 *
9
 * DISCLAIMER
10
 *
11
 * Do not edit or add to this file if you wish to upgrade Payone to newer
12
 * versions in the future. If you wish to customize Payone for your
13
 * needs please refer to http://www.payone.de for more information.
14
 *
15
 * @category        Payone
16
 * @package         Payone_Api
17
 * @subpackage      Request
18
 * @copyright       Copyright (c) 2012 <[email protected]> - www.noovias.com
19
 * @author          Matthias Walter <[email protected]>
20
 * @license         <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
21
 * @link            http://www.noovias.com
22
 */
23
24
/**
25
 *
26
 * @category        Payone
27
 * @package         Payone_Api
28
 * @subpackage      Request
29
 * @copyright       Copyright (c) 2012 <[email protected]> - www.noovias.com
30
 * @license         <http://www.gnu.org/licenses/> GNU General Public License (GPL 3)
31
 * @link            http://www.noovias.com
32
 */
33
class Payone_Api_Request_Parameter_Authorization_PersonalData
34
    extends Payone_Api_Request_Parameter_Authorization_Abstract
35
{
36
    /**
37
     * Merchant's customer ID (Permitted symbols: 0-9, a-z, A-Z, .,-,_,/)
38
     * @var string
39
     */
40
    protected $customerid = null;
41
    /**
42
     * PAYONE debtor ID
43
     *
44
     * @var int
45
     */
46
    protected $userid = NULL;
47
    protected $salutation = null;
48
    protected $title = null;
49
    protected $firstname = null;
50
    protected $lastname = null;
51
    protected $company = null;
52
    protected $street = null;
53
    protected $addressaddition = null;
54
    protected $zip = null;
55
    protected $city = null;
56
    /**
57
     * Country (ISO-3166)
58
     *
59
     * @var string
60
     */
61
    protected $country = null;
62
    protected $state = null;
63
    protected $email = null;
64
    protected $telephonenumber = null;
65
    /**
66
     * Date of birth (YYYYMMDD)
67
     *
68
     * @var int
69
     */
70
    protected $birthday = NULL;
71
    /**
72
     * Language indicator (ISO639)
73
     *
74
     * @var string
75
     */
76
    protected $language = null;
77
    protected $vatid = null;
78
    protected $ip = null;
79
    /**
80
     * Enum Gender
81
     * @var string
82
     */
83
    protected $gender = null;
84
    /**
85
     * @var string
86
     */
87
    protected $personalid = null;
88
89
    public function setAddressaddition($addressaddition)
90
    {
91
        $this->addressaddition = $addressaddition;
92
    }
93
94
    public function getAddressaddition()
95
    {
96
        return $this->addressaddition;
97
    }
98
99
    /**
100
     * @param string $birthday
101
     */
102
    public function setBirthday($birthday)
103
    {
104
        $this->birthday = $birthday;
0 ignored issues
show
Documentation Bug introduced by
The property $birthday was declared of type integer, but $birthday is of type string. Maybe add a type cast?

This check looks for assignments to scalar types that may be of the wrong type.

To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
105
    }
106
107
    /**
108
     * @return string
109
     */
110
    public function getBirthday()
111
    {
112
        return $this->birthday;
113
    }
114
115
    public function setCity($city)
116
    {
117
        $this->city = $city;
118
    }
119
120
    public function getCity()
121
    {
122
        return $this->city;
123
    }
124
125
    public function setCompany($company)
126
    {
127
        $this->company = $company;
128
    }
129
130
    public function getCompany()
131
    {
132
        return $this->company;
133
    }
134
135
    /**
136
     * @param string $country
137
     */
138
    public function setCountry($country)
139
    {
140
        $this->country = $country;
141
    }
142
143
    /**
144
     * @return string
145
     */
146
    public function getCountry()
147
    {
148
        return $this->country;
149
    }
150
151
    /**
152
     * @param string $customerid
153
     */
154
    public function setCustomerid($customerid)
155
    {
156
        $this->customerid = $customerid;
157
    }
158
159
    /**
160
     * @return string
161
     */
162
    public function getCustomerid()
163
    {
164
        return $this->customerid;
165
    }
166
167
    public function setEmail($email)
168
    {
169
        $this->email = $email;
170
    }
171
172
    public function getEmail()
173
    {
174
        return $this->email;
175
    }
176
177
    public function setFirstname($firstname)
178
    {
179
        $this->firstname = $firstname;
180
    }
181
182
    public function getFirstname()
183
    {
184
        return $this->firstname;
185
    }
186
187
    /**
188
     * @param string $gender
189
     */
190
    public function setGender($gender)
191
    {
192
        $this->gender = $gender;
193
    }
194
195
    /**
196
     * @return string
197
     */
198
    public function getGender()
199
    {
200
        return $this->gender;
201
    }
202
203
    public function setIp($ip)
204
    {
205
        $this->ip = $ip;
206
    }
207
208
    public function getIp()
209
    {
210
        return $this->ip;
211
    }
212
213
    /**
214
     * @param string $language
215
     */
216
    public function setLanguage($language)
217
    {
218
        $this->language = $language;
219
    }
220
221
    /**
222
     * @return string
223
     */
224
    public function getLanguage()
225
    {
226
        return $this->language;
227
    }
228
229
    public function setLastname($lastname)
230
    {
231
        $this->lastname = $lastname;
232
    }
233
234
    public function getLastname()
235
    {
236
        return $this->lastname;
237
    }
238
239
    /**
240
     * @param string $personalid
241
     */
242
    public function setPersonalid($personalid)
243
    {
244
        $this->personalid = $personalid;
245
    }
246
247
    /**
248
     * @return string
249
     */
250
    public function getPersonalid()
251
    {
252
        return $this->personalid;
253
    }
254
255
    public function setSalutation($salutation)
256
    {
257
        $this->salutation = $salutation;
258
    }
259
260
    public function getSalutation()
261
    {
262
        return $this->salutation;
263
    }
264
265
    public function setState($state)
266
    {
267
        $this->state = $state;
268
    }
269
270
    public function getState()
271
    {
272
        return $this->state;
273
    }
274
275
    public function setStreet($street)
276
    {
277
        $this->street = $street;
278
    }
279
280
    public function getStreet()
281
    {
282
        return $this->street;
283
    }
284
285
    public function setTelephonenumber($telephonenumber)
286
    {
287
        $this->telephonenumber = $telephonenumber;
288
    }
289
290
    public function getTelephonenumber()
291
    {
292
        return $this->telephonenumber;
293
    }
294
295
    public function setTitle($title)
296
    {
297
        $this->title = $title;
298
    }
299
300
    public function getTitle()
301
    {
302
        return $this->title;
303
    }
304
305
    /**
306
     * @param string $userid
307
     */
308
    public function setUserid($userid)
309
    {
310
        $this->userid = $userid;
0 ignored issues
show
Documentation Bug introduced by
The property $userid was declared of type integer, but $userid is of type string. Maybe add a type cast?

This check looks for assignments to scalar types that may be of the wrong type.

To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.

$answer = 42;

$correct = false;

$correct = (bool) $answer;
Loading history...
311
    }
312
313
    /**
314
     * @return string
315
     */
316
    public function getUserid()
317
    {
318
        return $this->userid;
319
    }
320
321
    public function setVatid($vatid)
322
    {
323
        $this->vatid = $vatid;
324
    }
325
326
    public function getVatid()
327
    {
328
        return $this->vatid;
329
    }
330
331
    public function setZip($zip)
332
    {
333
        $this->zip = $zip;
334
    }
335
336
    public function getZip()
337
    {
338
        return $this->zip;
339
    }
340
}
341