1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace PagaMasTarde\Model; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Class Card |
7
|
|
|
* @package PagaMasTarde\Model |
8
|
|
|
*/ |
9
|
|
|
class Card extends AbstractModel |
10
|
|
|
{ |
11
|
|
|
/** |
12
|
|
|
* @var string $id |
13
|
|
|
*/ |
14
|
|
|
public $id; |
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* @var string $bin |
18
|
|
|
* |
19
|
|
|
* ex: 554050 |
20
|
|
|
*/ |
21
|
|
|
public $bin; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* @var string $brand |
25
|
|
|
* |
26
|
|
|
* ex: visa |
27
|
|
|
*/ |
28
|
|
|
public $brand; |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* @var string $type |
32
|
|
|
* |
33
|
|
|
* ex: debit |
34
|
|
|
*/ |
35
|
|
|
public $type; |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* @var string $category |
39
|
|
|
* |
40
|
|
|
* ex: CLASIC |
41
|
|
|
*/ |
42
|
|
|
public $category; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var string $countryCode |
46
|
|
|
* |
47
|
|
|
* ex: GB |
48
|
|
|
*/ |
49
|
|
|
public $countryCode; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @var string $last4 |
53
|
|
|
* |
54
|
|
|
* Last 4 number of card. ex: 9014 |
55
|
|
|
*/ |
56
|
|
|
public $last4; |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @var string $expirationYear |
60
|
|
|
* |
61
|
|
|
* ex: 2016 |
62
|
|
|
*/ |
63
|
|
|
public $expirationYear; |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* @var string $expirationMonth |
67
|
|
|
* |
68
|
|
|
* ex: 12 |
69
|
|
|
*/ |
70
|
|
|
public $expirationMonth; |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @return string |
74
|
|
|
*/ |
75
|
|
|
public function getId() |
76
|
|
|
{ |
77
|
|
|
return $this->id; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @param string $id |
82
|
|
|
* |
83
|
|
|
* @return Card |
84
|
|
|
*/ |
85
|
|
|
public function setId($id) |
86
|
|
|
{ |
87
|
|
|
$this->id = $id; |
88
|
|
|
|
89
|
|
|
return $this; |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @return string |
94
|
|
|
*/ |
95
|
|
|
public function getBin() |
96
|
|
|
{ |
97
|
|
|
return $this->bin; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @param string $bin |
102
|
|
|
* |
103
|
|
|
* @return Card |
104
|
|
|
*/ |
105
|
|
|
public function setBin($bin) |
106
|
|
|
{ |
107
|
|
|
$this->bin = $bin; |
108
|
|
|
|
109
|
|
|
return $this; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* @return string |
114
|
|
|
*/ |
115
|
|
|
public function getBrand() |
116
|
|
|
{ |
117
|
|
|
return $this->brand; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
/** |
121
|
|
|
* @param string $brand |
122
|
|
|
* |
123
|
|
|
* @return Card |
124
|
|
|
*/ |
125
|
|
|
public function setBrand($brand) |
126
|
|
|
{ |
127
|
|
|
$this->brand = $brand; |
128
|
|
|
|
129
|
|
|
return $this; |
130
|
|
|
} |
131
|
|
|
|
132
|
|
|
/** |
133
|
|
|
* @return string |
134
|
|
|
*/ |
135
|
|
|
public function getType() |
136
|
|
|
{ |
137
|
|
|
return $this->type; |
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
/** |
141
|
|
|
* @param string $type |
142
|
|
|
* |
143
|
|
|
* @return Card |
144
|
|
|
*/ |
145
|
|
|
public function setType($type) |
146
|
|
|
{ |
147
|
|
|
$this->type = $type; |
148
|
|
|
|
149
|
|
|
return $this; |
150
|
|
|
} |
151
|
|
|
|
152
|
|
|
/** |
153
|
|
|
* @return string |
154
|
|
|
*/ |
155
|
|
|
public function getCategory() |
156
|
|
|
{ |
157
|
|
|
return $this->category; |
158
|
|
|
} |
159
|
|
|
|
160
|
|
|
/** |
161
|
|
|
* @param string $category |
162
|
|
|
* |
163
|
|
|
* @return Card |
164
|
|
|
*/ |
165
|
|
|
public function setCategory($category) |
166
|
|
|
{ |
167
|
|
|
$this->category = $category; |
168
|
|
|
|
169
|
|
|
return $this; |
170
|
|
|
} |
171
|
|
|
|
172
|
|
|
/** |
173
|
|
|
* @return string |
174
|
|
|
*/ |
175
|
|
|
public function getCountryCode() |
176
|
|
|
{ |
177
|
|
|
return $this->countryCode; |
178
|
|
|
} |
179
|
|
|
|
180
|
|
|
/** |
181
|
|
|
* @param string $countryCode |
182
|
|
|
* |
183
|
|
|
* @return Card |
184
|
|
|
*/ |
185
|
|
|
public function setCountryCode($countryCode) |
186
|
|
|
{ |
187
|
|
|
$this->countryCode = $countryCode; |
188
|
|
|
|
189
|
|
|
return $this; |
190
|
|
|
} |
191
|
|
|
|
192
|
|
|
/** |
193
|
|
|
* @return string |
194
|
|
|
*/ |
195
|
|
|
public function getLast4() |
196
|
|
|
{ |
197
|
|
|
return $this->last4; |
198
|
|
|
} |
199
|
|
|
|
200
|
|
|
/** |
201
|
|
|
* @param string $last4 |
202
|
|
|
* |
203
|
|
|
* @return Card |
204
|
|
|
*/ |
205
|
|
|
public function setLast4($last4) |
206
|
|
|
{ |
207
|
|
|
$this->last4 = $last4; |
208
|
|
|
|
209
|
|
|
return $this; |
210
|
|
|
} |
211
|
|
|
|
212
|
|
|
/** |
213
|
|
|
* @return string |
214
|
|
|
*/ |
215
|
|
|
public function getExpirationYear() |
216
|
|
|
{ |
217
|
|
|
return $this->expirationYear; |
218
|
|
|
} |
219
|
|
|
|
220
|
|
|
/** |
221
|
|
|
* @param string $expirationYear |
222
|
|
|
* |
223
|
|
|
* @return Card |
224
|
|
|
*/ |
225
|
|
|
public function setExpirationYear($expirationYear) |
226
|
|
|
{ |
227
|
|
|
$this->expirationYear = $expirationYear; |
228
|
|
|
|
229
|
|
|
return $this; |
230
|
|
|
} |
231
|
|
|
|
232
|
|
|
/** |
233
|
|
|
* @return string |
234
|
|
|
*/ |
235
|
|
|
public function getExpirationMonth() |
236
|
|
|
{ |
237
|
|
|
return $this->expirationMonth; |
238
|
|
|
} |
239
|
|
|
|
240
|
|
|
/** |
241
|
|
|
* @param string $expirationMonth |
242
|
|
|
* |
243
|
|
|
* @return Card |
244
|
|
|
*/ |
245
|
|
|
public function setExpirationMonth($expirationMonth) |
246
|
|
|
{ |
247
|
|
|
$this->expirationMonth = $expirationMonth; |
248
|
|
|
|
249
|
|
|
return $this; |
250
|
|
|
} |
251
|
|
|
} |
252
|
|
|
|