GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

CreditCard::setExpireMonth()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Onend\PayPal\Payment\Model;
4
5
use JMS\Serializer\Annotation as JMS;
6
7
use Onend\PayPal\Common\Model\AbstractModel;
8
9
class CreditCard extends AbstractModel
10
{
11
    /**
12
     * @JMS\Type("string")
13
     *
14
     * @var string
15
     */
16
    protected $id;
17
18
    /**
19
     * @JMS\Type("string")
20
     * @JMS\SerializedName("payer_id")
21
     *
22
     * @var string
23
     */
24
    protected $payerId;
25
26
    /**
27
     * @JMS\Type("string")
28
     *
29
     * @var string
30
     */
31
    protected $number;
32
33
    /**
34
     * @JMS\Type("string")
35
     *
36
     * @var string
37
     */
38
    protected $type;
39
40
    /**
41
     * @JMS\Type("integer")
42
     * @JMS\SerializedName("expire_month")
43
     *
44
     * @var int
45
     */
46
    protected $expireMonth;
47
48
    /**
49
     * @JMS\Type("integer")
50
     * @JMS\SerializedName("expire_year")
51
     *
52
     * @var int
53
     */
54
    protected $expireYear;
55
56
    /**
57
     * @JMS\Type("integer")
58
     *
59
     * @var int
60
     */
61
    protected $cvv2;
62
63
    /**
64
     * @JMS\Type("string")
65
     * @JMS\SerializedName("first_name")
66
     *
67
     * @var string
68
     */
69
    protected $firstName;
70
71
    /**
72
     * @JMS\Type("string")
73
     * @JMS\SerializedName("last_name")
74
     *
75
     * @var string
76
     */
77
    protected $lastName;
78
79
    /**
80
     * @JMS\Type("string")
81
     * @JMS\SerializedName("valid_until")
82
     *
83
     * @var string
84
     */
85
    protected $validUntil;
86
87
    /**
88
     * @JMS\Type("Onend\PayPal\Payment\Model\BillingAddress")
89
     * @JMS\SerializedName("billing_address")
90
     *
91
     * @var BillingAddress
92
     */
93
    protected $billingAddress;
94
95
    /**
96
     * @return BillingAddress
97
     */
98
    public function getBillingAddress()
99
    {
100
        return $this->billingAddress;
101
    }
102
103
    /**
104
     * @param BillingAddress $billingAddress
105
     */
106
    public function setBillingAddress(BillingAddress $billingAddress)
107
    {
108
        $this->billingAddress = $billingAddress;
109
    }
110
111
    /**
112
     * @return int
113
     */
114
    public function getCvv2()
115
    {
116
        return $this->cvv2;
117
    }
118
119
    /**
120
     * @param int $cvv2
121
     */
122
    public function setCvv2($cvv2)
123
    {
124
        $this->cvv2 = $cvv2;
125
    }
126
127
    /**
128
     * @return int
129
     */
130
    public function getExpireMonth()
131
    {
132
        return $this->expireMonth;
133
    }
134
135
    /**
136
     * @param int $expireMonth
137
     */
138
    public function setExpireMonth($expireMonth)
139
    {
140
        $this->expireMonth = $expireMonth;
141
    }
142
143
    /**
144
     * @return int
145
     */
146
    public function getExpireYear()
147
    {
148
        return $this->expireYear;
149
    }
150
151
    /**
152
     * @param int $expireYear
153
     */
154
    public function setExpireYear($expireYear)
155
    {
156
        $this->expireYear = $expireYear;
157
    }
158
159
    /**
160
     * @return string
161
     */
162
    public function getFirstName()
163
    {
164
        return $this->firstName;
165
    }
166
167
    /**
168
     * @param string $firstName
169
     */
170
    public function setFirstName($firstName)
171
    {
172
        $this->firstName = $firstName;
173
    }
174
175
    /**
176
     * @return string
177
     */
178
    public function getId()
179
    {
180
        return $this->id;
181
    }
182
183
    /**
184
     * @param string $id
185
     */
186
    public function setId($id)
187
    {
188
        $this->id = $id;
189
    }
190
191
    /**
192
     * @return string
193
     */
194
    public function getLastName()
195
    {
196
        return $this->lastName;
197
    }
198
199
    /**
200
     * @param string $lastName
201
     */
202
    public function setLastName($lastName)
203
    {
204
        $this->lastName = $lastName;
205
    }
206
207
    /**
208
     * @return string
209
     */
210
    public function getNumber()
211
    {
212
        return $this->number;
213
    }
214
215
    /**
216
     * @param string $number
217
     */
218
    public function setNumber($number)
219
    {
220
        $this->number = $number;
221
    }
222
223
    /**
224
     * @return string
225
     */
226
    public function getPayerId()
227
    {
228
        return $this->payerId;
229
    }
230
231
    /**
232
     * @param string $payerId
233
     */
234
    public function setPayerId($payerId)
235
    {
236
        $this->payerId = $payerId;
237
    }
238
239
    /**
240
     * @return string
241
     */
242
    public function getType()
243
    {
244
        return $this->type;
245
    }
246
247
    /**
248
     * @param string $type
249
     */
250
    public function setType($type)
251
    {
252
        $this->type = $type;
253
    }
254
255
    /**
256
     * @return string
257
     */
258
    public function getValidUntil()
259
    {
260
        return $this->validUntil;
261
    }
262
263
    /**
264
     * @param string $validUntil
265
     */
266
    public function setValidUntil($validUntil)
267
    {
268
        $this->validUntil = $validUntil;
269
    }
270
}
271