1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace PreviewTechs\cPanelWHM\Entity; |
4
|
|
|
|
5
|
|
|
class Domain |
6
|
|
|
{ |
7
|
|
|
/** |
8
|
|
|
* @var string |
9
|
|
|
*/ |
10
|
|
|
public $domain; |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* @var string |
14
|
|
|
*/ |
15
|
|
|
public $ipv4SSL; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* @var string |
19
|
|
|
*/ |
20
|
|
|
public $ipv6; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @var int |
24
|
|
|
*/ |
25
|
|
|
public $sslPort; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @var string|null |
29
|
|
|
*/ |
30
|
|
|
public $phpVersion; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @var string |
34
|
|
|
*/ |
35
|
|
|
public $user; |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* @var string |
39
|
|
|
*/ |
40
|
|
|
public $userOwner; |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @var string |
44
|
|
|
*/ |
45
|
|
|
public $domainType; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @var bool |
49
|
|
|
*/ |
50
|
|
|
public $ipv6IsDedicated; |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @var string|null |
54
|
|
|
*/ |
55
|
|
|
public $parentDomain; |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @var string |
59
|
|
|
*/ |
60
|
|
|
public $ipv4; |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* @var bool |
64
|
|
|
*/ |
65
|
|
|
public $modSecurityEnabled; |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* @var int |
69
|
|
|
*/ |
70
|
|
|
public $port; |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @var string |
74
|
|
|
*/ |
75
|
|
|
public $docRoot; |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* @return string |
79
|
|
|
*/ |
80
|
|
|
public function getDomain() |
81
|
|
|
{ |
82
|
|
|
return $this->domain; |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @param string $domain |
87
|
|
|
* @return Domain |
88
|
|
|
*/ |
89
|
|
|
public function setDomain($domain) |
90
|
|
|
{ |
91
|
|
|
$this->domain = $domain; |
92
|
|
|
return $this; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @return string |
97
|
|
|
*/ |
98
|
|
|
public function getIpv4SSL() |
99
|
|
|
{ |
100
|
|
|
return $this->ipv4SSL; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @param string $ipv4SSL |
105
|
|
|
* @return Domain |
106
|
|
|
*/ |
107
|
|
|
public function setIpv4SSL($ipv4SSL) |
108
|
|
|
{ |
109
|
|
|
$this->ipv4SSL = $ipv4SSL; |
110
|
|
|
return $this; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* @return string |
115
|
|
|
*/ |
116
|
|
|
public function getIpv6() |
117
|
|
|
{ |
118
|
|
|
return $this->ipv6; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* @param string $ipv6 |
123
|
|
|
* @return Domain |
124
|
|
|
*/ |
125
|
|
|
public function setIpv6($ipv6) |
126
|
|
|
{ |
127
|
|
|
$this->ipv6 = $ipv6; |
128
|
|
|
return $this; |
129
|
|
|
} |
130
|
|
|
|
131
|
|
|
/** |
132
|
|
|
* @return int |
133
|
|
|
*/ |
134
|
|
|
public function getSslPort() |
135
|
|
|
{ |
136
|
|
|
return $this->sslPort; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
/** |
140
|
|
|
* @param int $sslPort |
141
|
|
|
* @return Domain |
142
|
|
|
*/ |
143
|
|
|
public function setSslPort($sslPort) |
144
|
|
|
{ |
145
|
|
|
$this->sslPort = $sslPort; |
146
|
|
|
return $this; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
/** |
150
|
|
|
* @return null|string |
151
|
|
|
*/ |
152
|
|
|
public function getPhpVersion() |
153
|
|
|
{ |
154
|
|
|
return $this->phpVersion; |
155
|
|
|
} |
156
|
|
|
|
157
|
|
|
/** |
158
|
|
|
* @param null|string $phpVersion |
159
|
|
|
* @return Domain |
160
|
|
|
*/ |
161
|
|
|
public function setPhpVersion($phpVersion) |
162
|
|
|
{ |
163
|
|
|
$this->phpVersion = $phpVersion; |
164
|
|
|
return $this; |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
/** |
168
|
|
|
* @return string |
169
|
|
|
*/ |
170
|
|
|
public function getUser() |
171
|
|
|
{ |
172
|
|
|
return $this->user; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* @param string $user |
177
|
|
|
* @return Domain |
178
|
|
|
*/ |
179
|
|
|
public function setUser($user) |
180
|
|
|
{ |
181
|
|
|
$this->user = $user; |
182
|
|
|
return $this; |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* @return string |
187
|
|
|
*/ |
188
|
|
|
public function getUserOwner() |
189
|
|
|
{ |
190
|
|
|
return $this->userOwner; |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
/** |
194
|
|
|
* @param string $userOwner |
195
|
|
|
* @return Domain |
196
|
|
|
*/ |
197
|
|
|
public function setUserOwner($userOwner) |
198
|
|
|
{ |
199
|
|
|
$this->userOwner = $userOwner; |
200
|
|
|
return $this; |
201
|
|
|
} |
202
|
|
|
|
203
|
|
|
/** |
204
|
|
|
* @return string |
205
|
|
|
*/ |
206
|
|
|
public function getDomainType() |
207
|
|
|
{ |
208
|
|
|
return $this->domainType; |
209
|
|
|
} |
210
|
|
|
|
211
|
|
|
/** |
212
|
|
|
* @param string $domainType |
213
|
|
|
* @return Domain |
214
|
|
|
*/ |
215
|
|
|
public function setDomainType($domainType) |
216
|
|
|
{ |
217
|
|
|
$this->domainType = $domainType; |
218
|
|
|
return $this; |
219
|
|
|
} |
220
|
|
|
|
221
|
|
|
/** |
222
|
|
|
* @return bool |
223
|
|
|
*/ |
224
|
|
|
public function isIpv6IsDedicated() |
225
|
|
|
{ |
226
|
|
|
return $this->ipv6IsDedicated; |
227
|
|
|
} |
228
|
|
|
|
229
|
|
|
/** |
230
|
|
|
* @param bool $ipv6IsDedicated |
231
|
|
|
* @return Domain |
232
|
|
|
*/ |
233
|
|
|
public function setIpv6IsDedicated($ipv6IsDedicated) |
234
|
|
|
{ |
235
|
|
|
$this->ipv6IsDedicated = $ipv6IsDedicated; |
236
|
|
|
return $this; |
237
|
|
|
} |
238
|
|
|
|
239
|
|
|
/** |
240
|
|
|
* @return null|string |
241
|
|
|
*/ |
242
|
|
|
public function getParentDomain() |
243
|
|
|
{ |
244
|
|
|
return $this->parentDomain; |
245
|
|
|
} |
246
|
|
|
|
247
|
|
|
/** |
248
|
|
|
* @param null|string $parentDomain |
249
|
|
|
* @return Domain |
250
|
|
|
*/ |
251
|
|
|
public function setParentDomain($parentDomain) |
252
|
|
|
{ |
253
|
|
|
$this->parentDomain = $parentDomain; |
254
|
|
|
return $this; |
255
|
|
|
} |
256
|
|
|
|
257
|
|
|
/** |
258
|
|
|
* @return string |
259
|
|
|
*/ |
260
|
|
|
public function getIpv4() |
261
|
|
|
{ |
262
|
|
|
return $this->ipv4; |
263
|
|
|
} |
264
|
|
|
|
265
|
|
|
/** |
266
|
|
|
* @param string $ipv4 |
267
|
|
|
* @return Domain |
268
|
|
|
*/ |
269
|
|
|
public function setIpv4($ipv4) |
270
|
|
|
{ |
271
|
|
|
$this->ipv4 = $ipv4; |
272
|
|
|
return $this; |
273
|
|
|
} |
274
|
|
|
|
275
|
|
|
/** |
276
|
|
|
* @return bool |
277
|
|
|
*/ |
278
|
|
|
public function isModSecurityEnabled() |
279
|
|
|
{ |
280
|
|
|
return $this->modSecurityEnabled; |
281
|
|
|
} |
282
|
|
|
|
283
|
|
|
/** |
284
|
|
|
* @param bool $modSecurityEnabled |
285
|
|
|
* @return Domain |
286
|
|
|
*/ |
287
|
|
|
public function setModSecurityEnabled($modSecurityEnabled) |
288
|
|
|
{ |
289
|
|
|
$this->modSecurityEnabled = $modSecurityEnabled; |
290
|
|
|
return $this; |
291
|
|
|
} |
292
|
|
|
|
293
|
|
|
/** |
294
|
|
|
* @return int |
295
|
|
|
*/ |
296
|
|
|
public function getPort() |
297
|
|
|
{ |
298
|
|
|
return $this->port; |
299
|
|
|
} |
300
|
|
|
|
301
|
|
|
/** |
302
|
|
|
* @param int $port |
303
|
|
|
* @return Domain |
304
|
|
|
*/ |
305
|
|
|
public function setPort($port) |
306
|
|
|
{ |
307
|
|
|
$this->port = $port; |
308
|
|
|
return $this; |
309
|
|
|
} |
310
|
|
|
|
311
|
|
|
/** |
312
|
|
|
* @return string |
313
|
|
|
*/ |
314
|
|
|
public function getDocRoot() |
315
|
|
|
{ |
316
|
|
|
return $this->docRoot; |
317
|
|
|
} |
318
|
|
|
|
319
|
|
|
/** |
320
|
|
|
* @param string $docRoot |
321
|
|
|
* @return Domain |
322
|
|
|
*/ |
323
|
|
|
public function setDocRoot($docRoot) |
324
|
|
|
{ |
325
|
|
|
$this->docRoot = $docRoot; |
326
|
|
|
return $this; |
327
|
|
|
} |
328
|
|
|
} |