PersonalData::setEmail()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
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 View Code Duplication
class Payone_Api_Request_Parameter_CreateAccess_PersonalData
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
34
    extends Payone_Api_Request_Parameter_CreateAccess_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 debitor 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 $email = null;
63
    protected $telephonenumber = null;
64
    /**
65
     * Date of birth (YYYYMMDD)
66
     *
67
     * @var int
68
     */
69
    protected $birthday = NULL;
70
    /**
71
     * Language indicator (ISO639)
72
     *
73
     * @var string
74
     */
75
    protected $language = null;
76
    protected $vatid = null;
77
    protected $ip = null;
78
79
    public function setAddressaddition($addressaddition)
80
    {
81
        $this->addressaddition = $addressaddition;
82
    }
83
84
    public function getAddressaddition()
85
    {
86
        return $this->addressaddition;
87
    }
88
89
    /**
90
     * @param string $birthday
91
     */
92
    public function setBirthday($birthday)
93
    {
94
        $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...
95
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function getBirthday()
101
    {
102
        return $this->birthday;
103
    }
104
105
    public function setCity($city)
106
    {
107
        $this->city = $city;
108
    }
109
110
    public function getCity()
111
    {
112
        return $this->city;
113
    }
114
115
    public function setCompany($company)
116
    {
117
        $this->company = $company;
118
    }
119
120
    public function getCompany()
121
    {
122
        return $this->company;
123
    }
124
125
    /**
126
     * @param string $country
127
     */
128
    public function setCountry($country)
129
    {
130
        $this->country = $country;
131
    }
132
133
    /**
134
     * @return string
135
     */
136
    public function getCountry()
137
    {
138
        return $this->country;
139
    }
140
141
    /**
142
     * @param string $customerid
143
     */
144
    public function setCustomerid($customerid)
145
    {
146
        $this->customerid = $customerid;
147
    }
148
149
    /**
150
     * @return string
151
     */
152
    public function getCustomerid()
153
    {
154
        return $this->customerid;
155
    }
156
157
    public function setEmail($email)
158
    {
159
        $this->email = $email;
160
    }
161
162
    public function getEmail()
163
    {
164
        return $this->email;
165
    }
166
167
    public function setFirstname($firstname)
168
    {
169
        $this->firstname = $firstname;
170
    }
171
172
    public function getFirstname()
173
    {
174
        return $this->firstname;
175
    }
176
177
    public function setIp($ip)
178
    {
179
        $this->ip = $ip;
180
    }
181
182
    public function getIp()
183
    {
184
        return $this->ip;
185
    }
186
187
    /**
188
     * @param string $language
189
     */
190
    public function setLanguage($language)
191
    {
192
        $this->language = $language;
193
    }
194
195
    /**
196
     * @return string
197
     */
198
    public function getLanguage()
199
    {
200
        return $this->language;
201
    }
202
203
    public function setLastname($lastname)
204
    {
205
        $this->lastname = $lastname;
206
    }
207
208
    public function getLastname()
209
    {
210
        return $this->lastname;
211
    }
212
213
    public function setSalutation($salutation)
214
    {
215
        $this->salutation = $salutation;
216
    }
217
218
    public function getSalutation()
219
    {
220
        return $this->salutation;
221
    }
222
223
    public function setStreet($street)
224
    {
225
        $this->street = $street;
226
    }
227
228
    public function getStreet()
229
    {
230
        return $this->street;
231
    }
232
233
    public function setTelephonenumber($telephonenumber)
234
    {
235
        $this->telephonenumber = $telephonenumber;
236
    }
237
238
    public function getTelephonenumber()
239
    {
240
        return $this->telephonenumber;
241
    }
242
243
    public function setTitle($title)
244
    {
245
        $this->title = $title;
246
    }
247
248
    public function getTitle()
249
    {
250
        return $this->title;
251
    }
252
253
    /**
254
     * @param string $userid
255
     */
256
    public function setUserid($userid)
257
    {
258
        $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...
259
    }
260
261
    /**
262
     * @return string
263
     */
264
    public function getUserid()
265
    {
266
        return $this->userid;
267
    }
268
269
    public function setVatid($vatid)
270
    {
271
        $this->vatid = $vatid;
272
    }
273
274
    public function getVatid()
275
    {
276
        return $this->vatid;
277
    }
278
279
    public function setZip($zip)
280
    {
281
        $this->zip = $zip;
282
    }
283
284
    public function getZip()
285
    {
286
        return $this->zip;
287
    }
288
}
289