1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace AcquiroPay\Models\Entities; |
6
|
|
|
|
7
|
|
|
class Site extends Entity |
8
|
|
|
{ |
9
|
|
|
/** |
10
|
|
|
* @var string |
11
|
|
|
*/ |
12
|
|
|
private $status; |
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* @var string |
16
|
|
|
*/ |
17
|
|
|
private $type; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* @var string |
21
|
|
|
*/ |
22
|
|
|
private $url; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @var string |
26
|
|
|
*/ |
27
|
|
|
private $shortName; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var int |
31
|
|
|
*/ |
32
|
|
|
private $designId; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var int |
36
|
|
|
*/ |
37
|
|
|
private $antifraudId; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var string |
41
|
|
|
*/ |
42
|
|
|
private $offerCountry; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @var string |
46
|
|
|
*/ |
47
|
|
|
private $xFrameOption; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @var string |
51
|
|
|
*/ |
52
|
|
|
private $urlAlias; |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* @var int |
56
|
|
|
*/ |
57
|
|
|
private $tariffId; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @var Tariff |
61
|
|
|
*/ |
62
|
|
|
private $tariff; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @var int |
66
|
|
|
*/ |
67
|
|
|
private $showLanguage; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @var string |
71
|
|
|
*/ |
72
|
|
|
private $siteLanguage; |
73
|
|
|
|
74
|
|
|
/** |
75
|
|
|
* @var int|null |
76
|
|
|
*/ |
77
|
|
|
private $merchantId; |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @var Product[] |
81
|
|
|
*/ |
82
|
|
|
private $products; |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* @return int |
86
|
|
|
*/ |
87
|
|
|
public function getShowLanguage(): ?int |
88
|
|
|
{ |
89
|
|
|
return $this->showLanguage; |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @param int $showLanguage |
94
|
|
|
*/ |
95
|
|
|
public function setShowLanguage(?int $showLanguage) |
96
|
|
|
{ |
97
|
|
|
$this->showLanguage = $showLanguage; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
/** |
101
|
|
|
* @return string |
102
|
|
|
*/ |
103
|
|
|
public function getSiteLanguage(): ?string |
104
|
|
|
{ |
105
|
|
|
return $this->siteLanguage; |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* @param string $siteLanguage |
110
|
|
|
*/ |
111
|
|
|
public function setSiteLanguage(?string $siteLanguage) |
112
|
|
|
{ |
113
|
|
|
$this->siteLanguage = $siteLanguage; |
114
|
|
|
} |
115
|
|
|
|
116
|
|
|
/** |
117
|
|
|
* @return int|null |
118
|
|
|
*/ |
119
|
|
|
public function getMerchantId(): ?int |
120
|
|
|
{ |
121
|
|
|
return $this->merchantId; |
122
|
|
|
} |
123
|
|
|
|
124
|
|
|
/** |
125
|
|
|
* @param int|null $merchantId |
126
|
|
|
*/ |
127
|
|
|
public function setMerchantId(?int $merchantId) |
128
|
|
|
{ |
129
|
|
|
$this->merchantId = $merchantId; |
130
|
|
|
} |
131
|
|
|
|
132
|
|
|
/** |
133
|
|
|
* @return string |
134
|
|
|
*/ |
135
|
|
|
public function getStatus(): ?string |
136
|
|
|
{ |
137
|
|
|
return $this->status; |
138
|
|
|
} |
139
|
|
|
|
140
|
|
|
/** |
141
|
|
|
* @param string $status |
142
|
|
|
*/ |
143
|
|
|
public function setStatus(?string $status) |
144
|
|
|
{ |
145
|
|
|
$this->status = $status; |
146
|
|
|
} |
147
|
|
|
|
148
|
|
|
/** |
149
|
|
|
* @return string |
150
|
|
|
*/ |
151
|
|
|
public function getType(): ?string |
152
|
|
|
{ |
153
|
|
|
return $this->type; |
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
/** |
157
|
|
|
* @param string $type |
158
|
|
|
*/ |
159
|
|
|
public function setType(?string $type) |
160
|
|
|
{ |
161
|
|
|
$this->type = $type; |
162
|
|
|
} |
163
|
|
|
|
164
|
|
|
/** |
165
|
|
|
* @return string |
166
|
|
|
*/ |
167
|
|
|
public function getUrl(): ?string |
168
|
|
|
{ |
169
|
|
|
return $this->url; |
170
|
|
|
} |
171
|
|
|
|
172
|
|
|
/** |
173
|
|
|
* @param string $url |
174
|
|
|
*/ |
175
|
|
|
public function setUrl(?string $url) |
176
|
|
|
{ |
177
|
|
|
$this->url = $url; |
178
|
|
|
} |
179
|
|
|
|
180
|
|
|
/** |
181
|
|
|
* @return string |
182
|
|
|
*/ |
183
|
|
|
public function getShortName(): ?string |
184
|
|
|
{ |
185
|
|
|
return $this->shortName; |
186
|
|
|
} |
187
|
|
|
|
188
|
|
|
/** |
189
|
|
|
* @param string $shortName |
190
|
|
|
*/ |
191
|
|
|
public function setShortName(?string $shortName) |
192
|
|
|
{ |
193
|
|
|
$this->shortName = $shortName; |
194
|
|
|
} |
195
|
|
|
|
196
|
|
|
/** |
197
|
|
|
* @return int |
198
|
|
|
*/ |
199
|
|
|
public function getDesignId(): ?int |
200
|
|
|
{ |
201
|
|
|
return $this->designId; |
202
|
|
|
} |
203
|
|
|
|
204
|
|
|
/** |
205
|
|
|
* @param int $designId |
206
|
|
|
*/ |
207
|
|
|
public function setDesignId(?int $designId) |
208
|
|
|
{ |
209
|
|
|
$this->designId = $designId; |
210
|
|
|
} |
211
|
|
|
|
212
|
|
|
/** |
213
|
|
|
* @return int |
214
|
|
|
*/ |
215
|
|
|
public function getAntifraudId(): ?int |
216
|
|
|
{ |
217
|
|
|
return $this->antifraudId; |
218
|
|
|
} |
219
|
|
|
|
220
|
|
|
/** |
221
|
|
|
* @param int $antifraudId |
222
|
|
|
*/ |
223
|
|
|
public function setAntifraudId(?int $antifraudId) |
224
|
|
|
{ |
225
|
|
|
$this->antifraudId = $antifraudId; |
226
|
|
|
} |
227
|
|
|
|
228
|
|
|
/** |
229
|
|
|
* @return string |
230
|
|
|
*/ |
231
|
|
|
public function getOfferCountry(): ?string |
232
|
|
|
{ |
233
|
|
|
return $this->offerCountry; |
234
|
|
|
} |
235
|
|
|
|
236
|
|
|
/** |
237
|
|
|
* @param string $offerCountry |
238
|
|
|
*/ |
239
|
|
|
public function setOfferCountry(?string $offerCountry) |
240
|
|
|
{ |
241
|
|
|
$this->offerCountry = $offerCountry; |
242
|
|
|
} |
243
|
|
|
|
244
|
|
|
/** |
245
|
|
|
* @return int |
246
|
|
|
*/ |
247
|
|
|
public function getTariffId(): ?int |
248
|
|
|
{ |
249
|
|
|
return $this->tariffId; |
250
|
|
|
} |
251
|
|
|
|
252
|
|
|
/** |
253
|
|
|
* @param int $tariffId |
254
|
|
|
*/ |
255
|
|
|
public function setTariffId(?int $tariffId) |
256
|
|
|
{ |
257
|
|
|
$this->tariffId = $tariffId; |
258
|
|
|
} |
259
|
|
|
|
260
|
|
|
/** |
261
|
|
|
* @return string |
262
|
|
|
*/ |
263
|
|
|
public function getXFrameOption(): ?string |
264
|
|
|
{ |
265
|
|
|
return $this->xFrameOption; |
266
|
|
|
} |
267
|
|
|
|
268
|
|
|
/** |
269
|
|
|
* @param string $xFrameOption |
270
|
|
|
*/ |
271
|
|
|
public function setXFrameOption(?string $xFrameOption) |
272
|
|
|
{ |
273
|
|
|
$this->xFrameOption = $xFrameOption; |
274
|
|
|
} |
275
|
|
|
|
276
|
|
|
/** |
277
|
|
|
* @return string |
278
|
|
|
*/ |
279
|
|
|
public function getUrlAlias(): ?string |
280
|
|
|
{ |
281
|
|
|
return $this->urlAlias; |
282
|
|
|
} |
283
|
|
|
|
284
|
|
|
/** |
285
|
|
|
* @param string $urlAlias |
286
|
|
|
*/ |
287
|
|
|
public function setUrlAlias(?string $urlAlias) |
288
|
|
|
{ |
289
|
|
|
$this->urlAlias = $urlAlias; |
290
|
|
|
} |
291
|
|
|
|
292
|
|
|
/** |
293
|
|
|
* @return Tariff |
294
|
|
|
*/ |
295
|
|
|
public function getTariff(): ?Tariff |
296
|
|
|
{ |
297
|
|
|
return $this->tariff; |
298
|
|
|
} |
299
|
|
|
|
300
|
|
|
/** |
301
|
|
|
* @param Tariff $tariff |
302
|
|
|
*/ |
303
|
|
|
public function setTariff(?Tariff $tariff) |
304
|
|
|
{ |
305
|
|
|
$this->tariff = $tariff; |
306
|
|
|
} |
307
|
|
|
|
308
|
|
|
/** |
309
|
|
|
* @return Product[] |
310
|
|
|
*/ |
311
|
|
|
public function getProducts(): ?array |
312
|
|
|
{ |
313
|
|
|
return $this->products; |
314
|
|
|
} |
315
|
|
|
|
316
|
|
|
/** |
317
|
|
|
* @param Product[] $products |
318
|
|
|
*/ |
319
|
|
|
public function setProducts(?array $products) |
320
|
|
|
{ |
321
|
|
|
$this->products = $products; |
322
|
|
|
} |
323
|
|
|
} |
324
|
|
|
|