|
1
|
|
|
<?php |
|
2
|
|
|
namespace Checkdomain\Comodo\Model\Result; |
|
3
|
|
|
|
|
4
|
|
|
/** |
|
5
|
|
|
* Class WebHostReportEntryItem |
|
6
|
|
|
*/ |
|
7
|
|
|
class WebHostReportEntryItem |
|
8
|
|
|
{ |
|
9
|
|
|
|
|
10
|
|
|
/** |
|
11
|
|
|
* @var int |
|
12
|
|
|
*/ |
|
13
|
|
|
protected $rowNumber; |
|
14
|
|
|
|
|
15
|
|
|
|
|
16
|
|
|
/** |
|
17
|
|
|
* @var string |
|
18
|
|
|
*/ |
|
19
|
|
|
protected $type; |
|
20
|
|
|
|
|
21
|
|
|
/** |
|
22
|
|
|
* @var string |
|
23
|
|
|
*/ |
|
24
|
|
|
protected $domain; |
|
25
|
|
|
|
|
26
|
|
|
/** |
|
27
|
|
|
* @var string |
|
28
|
|
|
*/ |
|
29
|
|
|
protected $additionalDomain; |
|
30
|
|
|
|
|
31
|
|
|
/** |
|
32
|
|
|
* @var string |
|
33
|
|
|
*/ |
|
34
|
|
|
protected $mdcDomainNames; |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* @var string |
|
38
|
|
|
*/ |
|
39
|
|
|
protected $status; |
|
40
|
|
|
|
|
41
|
|
|
/** |
|
42
|
|
|
* @var \DateTime |
|
43
|
|
|
*/ |
|
44
|
|
|
protected $lastStatusChange; |
|
45
|
|
|
|
|
46
|
|
|
/** |
|
47
|
|
|
* @var \DateTime |
|
48
|
|
|
*/ |
|
49
|
|
|
protected $notBefore; |
|
50
|
|
|
|
|
51
|
|
|
/** |
|
52
|
|
|
* @var \DateTime |
|
53
|
|
|
*/ |
|
54
|
|
|
protected $notAfter; |
|
55
|
|
|
|
|
56
|
|
|
/** |
|
57
|
|
|
* @var string |
|
58
|
|
|
*/ |
|
59
|
|
|
protected $serialNumber; |
|
60
|
|
|
|
|
61
|
|
|
/** |
|
62
|
|
|
* @var string |
|
63
|
|
|
*/ |
|
64
|
|
|
protected $signatureAlgorithm; |
|
65
|
|
|
|
|
66
|
|
|
/** |
|
67
|
|
|
* @var string |
|
68
|
|
|
*/ |
|
69
|
|
|
protected $keySize; |
|
70
|
|
|
|
|
71
|
|
|
/** |
|
72
|
|
|
* @var string |
|
73
|
|
|
*/ |
|
74
|
|
|
protected $webServerSoftware; |
|
75
|
|
|
|
|
76
|
|
|
/** |
|
77
|
|
|
* @var string |
|
78
|
|
|
*/ |
|
79
|
|
|
protected $certificateID; |
|
80
|
|
|
|
|
81
|
|
|
/** |
|
82
|
|
|
* @var string |
|
83
|
|
|
*/ |
|
84
|
|
|
protected $csrStatus; |
|
85
|
|
|
|
|
86
|
|
|
/** |
|
87
|
|
|
* @var string |
|
88
|
|
|
*/ |
|
89
|
|
|
protected $dcvStatus; |
|
90
|
|
|
|
|
91
|
|
|
/** |
|
92
|
|
|
* @var string |
|
93
|
|
|
*/ |
|
94
|
|
|
protected $ovCallBackStatus; |
|
95
|
|
|
|
|
96
|
|
|
/** |
|
97
|
|
|
* @var string |
|
98
|
|
|
*/ |
|
99
|
|
|
protected $organizationValidationStatus; |
|
100
|
|
|
|
|
101
|
|
|
/** |
|
102
|
|
|
* @var string |
|
103
|
|
|
*/ |
|
104
|
|
|
protected $countryName; |
|
105
|
|
|
|
|
106
|
|
|
/** |
|
107
|
|
|
* @var string |
|
108
|
|
|
*/ |
|
109
|
|
|
protected $freeDVUPStatus; |
|
110
|
|
|
|
|
111
|
|
|
/** |
|
112
|
|
|
* @var string |
|
113
|
|
|
*/ |
|
114
|
|
|
protected $evClickThroughStatus; |
|
115
|
|
|
|
|
116
|
|
|
/** |
|
117
|
|
|
* @return int |
|
118
|
|
|
*/ |
|
119
|
|
|
public function getRowNumber() |
|
120
|
|
|
{ |
|
121
|
|
|
return $this->rowNumber; |
|
122
|
|
|
} |
|
123
|
|
|
|
|
124
|
|
|
/** |
|
125
|
|
|
* @param int $rowNumber |
|
126
|
|
|
* @return WebHostReportEntry |
|
127
|
|
|
*/ |
|
128
|
|
|
public function setRowNumber($rowNumber) |
|
129
|
|
|
{ |
|
130
|
|
|
$this->rowNumber = $rowNumber; |
|
131
|
|
|
return $this; |
|
132
|
|
|
} |
|
133
|
|
|
|
|
134
|
|
|
/** |
|
135
|
|
|
* @return string |
|
136
|
|
|
*/ |
|
137
|
|
|
public function getType() |
|
138
|
|
|
{ |
|
139
|
|
|
return $this->type; |
|
140
|
|
|
} |
|
141
|
|
|
|
|
142
|
|
|
/** |
|
143
|
|
|
* @param string $type |
|
144
|
|
|
* @return WebHostReportEntry |
|
145
|
|
|
*/ |
|
146
|
|
|
public function setType($type) |
|
147
|
|
|
{ |
|
148
|
|
|
$this->type = $type; |
|
149
|
|
|
return $this; |
|
150
|
|
|
} |
|
151
|
|
|
|
|
152
|
|
|
/** |
|
153
|
|
|
* @return string |
|
154
|
|
|
*/ |
|
155
|
|
|
public function getDomain() |
|
156
|
|
|
{ |
|
157
|
|
|
return $this->domain; |
|
158
|
|
|
} |
|
159
|
|
|
|
|
160
|
|
|
/** |
|
161
|
|
|
* @param string $domain |
|
162
|
|
|
* @return WebHostReportEntry |
|
163
|
|
|
*/ |
|
164
|
|
|
public function setDomain($domain) |
|
165
|
|
|
{ |
|
166
|
|
|
$this->domain = $domain; |
|
167
|
|
|
return $this; |
|
168
|
|
|
} |
|
169
|
|
|
|
|
170
|
|
|
/** |
|
171
|
|
|
* @return string |
|
172
|
|
|
*/ |
|
173
|
|
|
public function getAdditionalDomain() |
|
174
|
|
|
{ |
|
175
|
|
|
return $this->additionalDomain; |
|
176
|
|
|
} |
|
177
|
|
|
|
|
178
|
|
|
/** |
|
179
|
|
|
* @param string $additionalDomain |
|
180
|
|
|
* @return WebHostReportEntry |
|
181
|
|
|
*/ |
|
182
|
|
|
public function setAdditionalDomain($additionalDomain) |
|
183
|
|
|
{ |
|
184
|
|
|
$this->additionalDomain = $additionalDomain; |
|
185
|
|
|
return $this; |
|
186
|
|
|
} |
|
187
|
|
|
|
|
188
|
|
|
/** |
|
189
|
|
|
* @return string |
|
190
|
|
|
*/ |
|
191
|
|
|
public function getMdcDomainNames() |
|
192
|
|
|
{ |
|
193
|
|
|
return $this->mdcDomainNames; |
|
194
|
|
|
} |
|
195
|
|
|
|
|
196
|
|
|
/** |
|
197
|
|
|
* @param string $mdcDomainNames |
|
198
|
|
|
* @return WebHostReportEntry |
|
199
|
|
|
*/ |
|
200
|
|
|
public function setMdcDomainNames($mdcDomainNames) |
|
201
|
|
|
{ |
|
202
|
|
|
$this->mdcDomainNames = $mdcDomainNames; |
|
203
|
|
|
return $this; |
|
204
|
|
|
} |
|
205
|
|
|
|
|
206
|
|
|
/** |
|
207
|
|
|
* @return string |
|
208
|
|
|
*/ |
|
209
|
|
|
public function getStatus() |
|
210
|
|
|
{ |
|
211
|
|
|
return $this->status; |
|
212
|
|
|
} |
|
213
|
|
|
|
|
214
|
|
|
/** |
|
215
|
|
|
* @param string $status |
|
216
|
|
|
* @return WebHostReportEntry |
|
217
|
|
|
*/ |
|
218
|
|
|
public function setStatus($status) |
|
219
|
|
|
{ |
|
220
|
|
|
$this->status = $status; |
|
221
|
|
|
return $this; |
|
222
|
|
|
} |
|
223
|
|
|
|
|
224
|
|
|
/** |
|
225
|
|
|
* @return \DateTime |
|
226
|
|
|
*/ |
|
227
|
|
|
public function getLastStatusChange() |
|
228
|
|
|
{ |
|
229
|
|
|
return $this->lastStatusChange; |
|
230
|
|
|
} |
|
231
|
|
|
|
|
232
|
|
|
/** |
|
233
|
|
|
* @param \DateTime $lastStatusChange |
|
234
|
|
|
* @return WebHostReportEntry |
|
235
|
|
|
*/ |
|
236
|
|
|
public function setLastStatusChange($lastStatusChange) |
|
237
|
|
|
{ |
|
238
|
|
|
if (is_numeric($lastStatusChange)) { |
|
239
|
|
|
$this->lastStatusChange = new \DateTime("@$lastStatusChange"); |
|
240
|
|
|
} else { |
|
241
|
|
|
$this->lastStatusChange = $dateTime; |
|
|
|
|
|
|
242
|
|
|
} |
|
243
|
|
|
return $this; |
|
244
|
|
|
} |
|
245
|
|
|
|
|
246
|
|
|
/** |
|
247
|
|
|
* @return \DateTime |
|
248
|
|
|
*/ |
|
249
|
|
|
public function getNotBefore() |
|
250
|
|
|
{ |
|
251
|
|
|
return $this->notBefore; |
|
252
|
|
|
} |
|
253
|
|
|
|
|
254
|
|
|
/** |
|
255
|
|
|
* @param \DateTime $notBefore |
|
256
|
|
|
* @return WebHostReportEntry |
|
257
|
|
|
*/ |
|
258
|
|
|
public function setNotBefore($notBefore) |
|
259
|
|
|
{ |
|
260
|
|
|
if (is_numeric($notBefore)) { |
|
261
|
|
|
$this->notBefore = new \DateTime("@$notBefore"); |
|
262
|
|
|
} else { |
|
263
|
|
|
$this->notBefore = $notBefore; |
|
264
|
|
|
} |
|
265
|
|
|
return $this; |
|
266
|
|
|
} |
|
267
|
|
|
|
|
268
|
|
|
/** |
|
269
|
|
|
* @return \DateTime |
|
270
|
|
|
*/ |
|
271
|
|
|
public function getNotAfter() |
|
272
|
|
|
{ |
|
273
|
|
|
return $this->notAfter; |
|
274
|
|
|
} |
|
275
|
|
|
|
|
276
|
|
|
/** |
|
277
|
|
|
* @param \DateTime $notAfter |
|
278
|
|
|
* @return WebHostReportEntry |
|
279
|
|
|
*/ |
|
280
|
|
|
public function setNotAfter($notAfter) |
|
281
|
|
|
{ |
|
282
|
|
|
if (is_numeric($notBefore)) { |
|
|
|
|
|
|
283
|
|
|
$this->notAfter = new \DateTime("@$notAfter"); |
|
284
|
|
|
} else { |
|
285
|
|
|
$this->notAfter = $notAfter; |
|
286
|
|
|
} |
|
287
|
|
|
return $this; |
|
288
|
|
|
} |
|
289
|
|
|
|
|
290
|
|
|
/** |
|
291
|
|
|
* @return string |
|
292
|
|
|
*/ |
|
293
|
|
|
public function getSerialNumber() |
|
294
|
|
|
{ |
|
295
|
|
|
return $this->serialNumber; |
|
296
|
|
|
} |
|
297
|
|
|
|
|
298
|
|
|
/** |
|
299
|
|
|
* @param string $serialNumber |
|
300
|
|
|
* @return WebHostReportEntry |
|
301
|
|
|
*/ |
|
302
|
|
|
public function setSerialNumber($serialNumber) |
|
303
|
|
|
{ |
|
304
|
|
|
$this->serialNumber = $serialNumber; |
|
305
|
|
|
return $this; |
|
306
|
|
|
} |
|
307
|
|
|
|
|
308
|
|
|
/** |
|
309
|
|
|
* @return string |
|
310
|
|
|
*/ |
|
311
|
|
|
public function getSignatureAlgorithm() |
|
312
|
|
|
{ |
|
313
|
|
|
return $this->signatureAlgorithm; |
|
314
|
|
|
} |
|
315
|
|
|
|
|
316
|
|
|
/** |
|
317
|
|
|
* @param string $signatureAlgorithm |
|
318
|
|
|
* @return WebHostReportEntry |
|
319
|
|
|
*/ |
|
320
|
|
|
public function setSignatureAlgorithm($signatureAlgorithm) |
|
321
|
|
|
{ |
|
322
|
|
|
$this->signatureAlgorithm = $signatureAlgorithm; |
|
323
|
|
|
return $this; |
|
324
|
|
|
} |
|
325
|
|
|
|
|
326
|
|
|
/** |
|
327
|
|
|
* @return string |
|
328
|
|
|
*/ |
|
329
|
|
|
public function getKeySize() |
|
330
|
|
|
{ |
|
331
|
|
|
return $this->keySize; |
|
332
|
|
|
} |
|
333
|
|
|
|
|
334
|
|
|
/** |
|
335
|
|
|
* @param string $keySize |
|
336
|
|
|
* @return WebHostReportEntry |
|
337
|
|
|
*/ |
|
338
|
|
|
public function setKeySize($keySize) |
|
339
|
|
|
{ |
|
340
|
|
|
$this->keySize = $keySize; |
|
341
|
|
|
return $this; |
|
342
|
|
|
} |
|
343
|
|
|
|
|
344
|
|
|
/** |
|
345
|
|
|
* @return string |
|
346
|
|
|
*/ |
|
347
|
|
|
public function getWebServerSoftware() |
|
348
|
|
|
{ |
|
349
|
|
|
return $this->webServerSoftware; |
|
350
|
|
|
} |
|
351
|
|
|
|
|
352
|
|
|
/** |
|
353
|
|
|
* @param string $webServerSoftware |
|
354
|
|
|
* @return WebHostReportEntry |
|
355
|
|
|
*/ |
|
356
|
|
|
public function setWebServerSoftware($webServerSoftware) |
|
357
|
|
|
{ |
|
358
|
|
|
$this->webServerSoftware = $webServerSoftware; |
|
359
|
|
|
return $this; |
|
360
|
|
|
} |
|
361
|
|
|
|
|
362
|
|
|
/** |
|
363
|
|
|
* @return string |
|
364
|
|
|
*/ |
|
365
|
|
|
public function getCertificateID() |
|
366
|
|
|
{ |
|
367
|
|
|
return $this->certificateID; |
|
368
|
|
|
} |
|
369
|
|
|
|
|
370
|
|
|
/** |
|
371
|
|
|
* @param string $certificateID |
|
372
|
|
|
* @return WebHostReportEntry |
|
373
|
|
|
*/ |
|
374
|
|
|
public function setCertificateID($certificateID) |
|
375
|
|
|
{ |
|
376
|
|
|
$this->certificateID = $certificateID; |
|
377
|
|
|
return $this; |
|
378
|
|
|
} |
|
379
|
|
|
|
|
380
|
|
|
/** |
|
381
|
|
|
* @return string |
|
382
|
|
|
*/ |
|
383
|
|
|
public function getCsrStatus() |
|
384
|
|
|
{ |
|
385
|
|
|
return $this->csrStatus; |
|
386
|
|
|
} |
|
387
|
|
|
|
|
388
|
|
|
/** |
|
389
|
|
|
* @param string $csrStatus |
|
390
|
|
|
* @return WebHostReportEntry |
|
391
|
|
|
*/ |
|
392
|
|
|
public function setCsrStatus($csrStatus) |
|
393
|
|
|
{ |
|
394
|
|
|
$this->csrStatus = $csrStatus; |
|
395
|
|
|
return $this; |
|
396
|
|
|
} |
|
397
|
|
|
|
|
398
|
|
|
/** |
|
399
|
|
|
* @return string |
|
400
|
|
|
*/ |
|
401
|
|
|
public function getDcvStatus() |
|
402
|
|
|
{ |
|
403
|
|
|
return $this->dcvStatus; |
|
404
|
|
|
} |
|
405
|
|
|
|
|
406
|
|
|
/** |
|
407
|
|
|
* @param string $dcvStatus |
|
408
|
|
|
* @return WebHostReportEntry |
|
409
|
|
|
*/ |
|
410
|
|
|
public function setDcvStatus($dcvStatus) |
|
411
|
|
|
{ |
|
412
|
|
|
$this->dcvStatus = $dcvStatus; |
|
413
|
|
|
return $this; |
|
414
|
|
|
} |
|
415
|
|
|
|
|
416
|
|
|
/** |
|
417
|
|
|
* @return string |
|
418
|
|
|
*/ |
|
419
|
|
|
public function getOvCallBackStatus() |
|
420
|
|
|
{ |
|
421
|
|
|
return $this->ovCallBackStatus; |
|
422
|
|
|
} |
|
423
|
|
|
|
|
424
|
|
|
/** |
|
425
|
|
|
* @param string $ovCallBackStatus |
|
426
|
|
|
* @return WebHostReportEntry |
|
427
|
|
|
*/ |
|
428
|
|
|
public function setOvCallBackStatus($ovCallBackStatus) |
|
429
|
|
|
{ |
|
430
|
|
|
$this->ovCallBackStatus = $ovCallBackStatus; |
|
431
|
|
|
return $this; |
|
432
|
|
|
} |
|
433
|
|
|
|
|
434
|
|
|
/** |
|
435
|
|
|
* @return string |
|
436
|
|
|
*/ |
|
437
|
|
|
public function getOrganizationValidationStatus() |
|
438
|
|
|
{ |
|
439
|
|
|
return $this->organizationValidationStatus; |
|
440
|
|
|
} |
|
441
|
|
|
|
|
442
|
|
|
/** |
|
443
|
|
|
* @param string $organizationValidationStatus |
|
444
|
|
|
* @return WebHostReportEntry |
|
445
|
|
|
*/ |
|
446
|
|
|
public function setOrganizationValidationStatus($organizationValidationStatus) |
|
447
|
|
|
{ |
|
448
|
|
|
$this->organizationValidationStatus = $organizationValidationStatus; |
|
449
|
|
|
return $this; |
|
450
|
|
|
} |
|
451
|
|
|
|
|
452
|
|
|
/** |
|
453
|
|
|
* @return string |
|
454
|
|
|
*/ |
|
455
|
|
|
public function getCountryName() |
|
456
|
|
|
{ |
|
457
|
|
|
return $this->countryName; |
|
458
|
|
|
} |
|
459
|
|
|
|
|
460
|
|
|
/** |
|
461
|
|
|
* @param string $countryName |
|
462
|
|
|
* @return WebHostReportEntry |
|
463
|
|
|
*/ |
|
464
|
|
|
public function setCountryName($countryName) |
|
465
|
|
|
{ |
|
466
|
|
|
$this->countryName = $countryName; |
|
467
|
|
|
return $this; |
|
468
|
|
|
} |
|
469
|
|
|
|
|
470
|
|
|
/** |
|
471
|
|
|
* @return string |
|
472
|
|
|
*/ |
|
473
|
|
|
public function getFreeDVUPStatus() |
|
474
|
|
|
{ |
|
475
|
|
|
return $this->freeDVUPStatus; |
|
476
|
|
|
} |
|
477
|
|
|
|
|
478
|
|
|
/** |
|
479
|
|
|
* @param string $freeDVUPStatus |
|
480
|
|
|
* @return WebHostReportEntry |
|
481
|
|
|
*/ |
|
482
|
|
|
public function setFreeDVUPStatus($freeDVUPStatus) |
|
483
|
|
|
{ |
|
484
|
|
|
$this->freeDVUPStatus = $freeDVUPStatus; |
|
485
|
|
|
return $this; |
|
486
|
|
|
} |
|
487
|
|
|
|
|
488
|
|
|
/** |
|
489
|
|
|
* @return string |
|
490
|
|
|
*/ |
|
491
|
|
|
public function getEvClickThroughStatus() |
|
492
|
|
|
{ |
|
493
|
|
|
return $this->evClickThroughStatus; |
|
494
|
|
|
} |
|
495
|
|
|
|
|
496
|
|
|
/** |
|
497
|
|
|
* @param string $evClickThroughStatus |
|
498
|
|
|
* @return WebHostReportEntry |
|
499
|
|
|
*/ |
|
500
|
|
|
public function setEvClickThroughStatus($evClickThroughStatus) |
|
501
|
|
|
{ |
|
502
|
|
|
$this->evClickThroughStatus = $evClickThroughStatus; |
|
503
|
|
|
return $this; |
|
504
|
|
|
} |
|
505
|
|
|
|
|
506
|
|
|
|
|
507
|
|
|
|
|
508
|
|
|
} |
|
509
|
|
|
|
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.