1
|
|
|
<?php |
2
|
|
|
namespace Checkdomain\Comodo\Model\Result; |
3
|
|
|
|
4
|
|
|
/** |
5
|
|
|
* Class WebHostReportResult |
6
|
|
|
*/ |
7
|
|
|
class WebHostReportResult extends AbstractResult |
8
|
|
|
{ |
9
|
|
|
/** |
10
|
|
|
* @var string |
11
|
|
|
*/ |
12
|
|
|
protected $serverUrl; |
13
|
|
|
|
14
|
|
|
/** |
15
|
|
|
* @var int |
16
|
|
|
*/ |
17
|
|
|
protected $noOfResults; |
18
|
|
|
|
19
|
|
|
/** |
20
|
|
|
* @var int |
21
|
|
|
*/ |
22
|
|
|
protected $lastResultNo; |
23
|
|
|
|
24
|
|
|
/** |
25
|
|
|
* @var int |
26
|
|
|
*/ |
27
|
|
|
protected $firstResultNo; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* @var int |
31
|
|
|
*/ |
32
|
|
|
protected $notBefore; |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* @var int |
36
|
|
|
*/ |
37
|
|
|
protected $notAfter; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var WebHostReportEntryCollection |
41
|
|
|
*/ |
42
|
|
|
protected $entries; |
43
|
|
|
|
44
|
|
|
/** |
45
|
|
|
* @return int |
46
|
|
|
*/ |
47
|
|
|
public function getNoOfResults() |
48
|
|
|
{ |
49
|
|
|
return $this->noOfResults; |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @param int $noOfResults |
54
|
|
|
* @return WebHostReportResult |
55
|
|
|
*/ |
56
|
|
|
public function setNoOfResults($noOfResults) |
57
|
|
|
{ |
58
|
|
|
$this->noOfResults = $noOfResults; |
59
|
|
|
return $this; |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* @return int |
64
|
|
|
*/ |
65
|
|
|
public function getLastResultNo() |
66
|
|
|
{ |
67
|
|
|
return $this->lastResultNo; |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* @param int $lastResultNo |
72
|
|
|
* @return WebHostReportResult |
73
|
|
|
*/ |
74
|
|
|
public function setLastResultNo($lastResultNo) |
75
|
|
|
{ |
76
|
|
|
$this->lastResultNo = $lastResultNo; |
77
|
|
|
return $this; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @return int |
82
|
|
|
*/ |
83
|
|
|
public function getFirstResultNo() |
84
|
|
|
{ |
85
|
|
|
return $this->firstResultNo; |
86
|
|
|
} |
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @param int $firstResultNo |
90
|
|
|
* @return WebHostReportResult |
91
|
|
|
*/ |
92
|
|
|
public function setFirstResultNo($firstResultNo) |
93
|
|
|
{ |
94
|
|
|
$this->firstResultNo = $firstResultNo; |
95
|
|
|
return $this; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* @return int |
100
|
|
|
*/ |
101
|
|
|
public function getNotBefore() |
102
|
|
|
{ |
103
|
|
|
return $this->notBefore; |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* @param int $notBefore |
108
|
|
|
* @return WebHostReportResult |
109
|
|
|
*/ |
110
|
|
|
public function setNotBefore($notBefore) |
111
|
|
|
{ |
112
|
|
|
$this->notBefore = $notBefore; |
113
|
|
|
return $this; |
114
|
|
|
} |
115
|
|
|
|
116
|
|
|
/** |
117
|
|
|
* @return int |
118
|
|
|
*/ |
119
|
|
|
public function getNotAfter() |
120
|
|
|
{ |
121
|
|
|
return $this->notAfter; |
122
|
|
|
} |
123
|
|
|
|
124
|
|
|
/** |
125
|
|
|
* @param int $notAfter |
126
|
|
|
* @return WebHostReportResult |
127
|
|
|
*/ |
128
|
|
|
public function setNotAfter($notAfter) |
129
|
|
|
{ |
130
|
|
|
$this->notAfter = $notAfter; |
131
|
|
|
return $this; |
132
|
|
|
} |
133
|
|
|
|
134
|
|
|
/** |
135
|
|
|
* @param array $webHostReportRawResult |
136
|
|
|
* @return WebHostReportResult |
137
|
|
|
*/ |
138
|
|
|
public function importEntries($webHostReportRawResult) { |
139
|
|
|
|
140
|
|
|
$this->setNoOfResults($webHostReportRawResult['noOfResults']); |
141
|
|
|
$this->entries = new WebHostReportEntryCollection($webHostReportRawResult); |
142
|
|
|
|
143
|
|
|
return $this; |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* @return WebHostReportEntryCollection |
148
|
|
|
*/ |
149
|
|
|
public function getEntries() |
150
|
|
|
{ |
151
|
|
|
return $this->entries; |
152
|
|
|
} |
153
|
|
|
|
154
|
|
|
/** |
155
|
|
|
* @param WebHostReportEntryCollection $entries |
156
|
|
|
* @return WebHostReportResult |
157
|
|
|
*/ |
158
|
|
|
public function setEntries($entries) |
159
|
|
|
{ |
160
|
|
|
$this->entries = $entries; |
161
|
|
|
return $this; |
162
|
|
|
} |
163
|
|
|
|
164
|
|
|
} |
165
|
|
|
|