Passed
Push — master ( 82039d...77fef7 )
by Shaharia
01:39
created

DomainUser::setScriptAlias()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace PreviewTechs\cPanelWHM\Entity;
4
5
class DomainUser
6
{
7
    /**
8
     * @var bool
9
     */
10
    public $hasCGI;
11
12
    /**
13
     * @var string
14
     */
15
    public $serverName;
16
17
    /**
18
     * @var string
19
     */
20
    public $owner;
21
22
    /**
23
     * @var array
24
     */
25
    public $scriptAlias;
26
27
    /**
28
     * @var string
29
     */
30
    public $homeDirectory;
31
32
    /**
33
     * @var array
34
     */
35
    public $customLog;
36
37
    /**
38
     * @var string
39
     */
40
    public $user;
41
42
    /**
43
     * @var string
44
     */
45
    public $group;
46
47
    /**
48
     * @var string
49
     */
50
    public $ipAddress;
51
52
    /**
53
     * @var int
54
     */
55
    public $port;
56
57
    /**
58
     * @var bool
59
     */
60
    public $phpOpenBaseDirectoryProtect;
61
62
    /**
63
     * @var bool
64
     */
65
    public $useCanonicalName;
66
67
    /**
68
     * @var string
69
     */
70
    public $serverAdmin;
71
72
    /**
73
     * @var string
74
     */
75
    public $serverAlias;
76
77
    /**
78
     * @var string
79
     */
80
    public $documentRoot;
81
82
    /**
83
     * @return bool
84
     */
85
    public function isHasCGI()
86
    {
87
        return $this->hasCGI;
88
    }
89
90
    /**
91
     * @param bool $hasCGI
92
     * @return DomainUser
93
     */
94
    public function setHasCGI($hasCGI)
95
    {
96
        $this->hasCGI = $hasCGI;
97
        return $this;
98
    }
99
100
    /**
101
     * @return string
102
     */
103
    public function getServerName()
104
    {
105
        return $this->serverName;
106
    }
107
108
    /**
109
     * @param string $serverName
110
     * @return DomainUser
111
     */
112
    public function setServerName($serverName)
113
    {
114
        $this->serverName = $serverName;
115
        return $this;
116
    }
117
118
    /**
119
     * @return string
120
     */
121
    public function getOwner()
122
    {
123
        return $this->owner;
124
    }
125
126
    /**
127
     * @param string $owner
128
     * @return DomainUser
129
     */
130
    public function setOwner($owner)
131
    {
132
        $this->owner = $owner;
133
        return $this;
134
    }
135
136
    /**
137
     * @return array
138
     */
139
    public function getScriptAlias()
140
    {
141
        return $this->scriptAlias;
142
    }
143
144
    /**
145
     * @param array $scriptAlias
146
     * @return DomainUser
147
     */
148
    public function setScriptAlias($scriptAlias)
149
    {
150
        $this->scriptAlias = $scriptAlias;
151
        return $this;
152
    }
153
154
    /**
155
     * @return string
156
     */
157
    public function getHomeDirectory()
158
    {
159
        return $this->homeDirectory;
160
    }
161
162
    /**
163
     * @param string $homeDirectory
164
     * @return DomainUser
165
     */
166
    public function setHomeDirectory($homeDirectory)
167
    {
168
        $this->homeDirectory = $homeDirectory;
169
        return $this;
170
    }
171
172
    /**
173
     * @return array
174
     */
175
    public function getCustomLog()
176
    {
177
        return $this->customLog;
178
    }
179
180
    /**
181
     * @param array $customLog
182
     * @return DomainUser
183
     */
184
    public function setCustomLog($customLog)
185
    {
186
        $this->customLog = $customLog;
187
        return $this;
188
    }
189
190
    /**
191
     * @return string
192
     */
193
    public function getUser()
194
    {
195
        return $this->user;
196
    }
197
198
    /**
199
     * @param string $user
200
     * @return DomainUser
201
     */
202
    public function setUser($user)
203
    {
204
        $this->user = $user;
205
        return $this;
206
    }
207
208
    /**
209
     * @return string
210
     */
211
    public function getGroup()
212
    {
213
        return $this->group;
214
    }
215
216
    /**
217
     * @param string $group
218
     * @return DomainUser
219
     */
220
    public function setGroup($group)
221
    {
222
        $this->group = $group;
223
        return $this;
224
    }
225
226
    /**
227
     * @return string
228
     */
229
    public function getIpAddress()
230
    {
231
        return $this->ipAddress;
232
    }
233
234
    /**
235
     * @param string $ipAddress
236
     * @return DomainUser
237
     */
238
    public function setIpAddress($ipAddress)
239
    {
240
        $this->ipAddress = $ipAddress;
241
        return $this;
242
    }
243
244
    /**
245
     * @return int
246
     */
247
    public function getPort()
248
    {
249
        return $this->port;
250
    }
251
252
    /**
253
     * @param int $port
254
     * @return DomainUser
255
     */
256
    public function setPort($port)
257
    {
258
        $this->port = $port;
259
        return $this;
260
    }
261
262
    /**
263
     * @return bool
264
     */
265
    public function isPhpOpenBaseDirectoryProtect()
266
    {
267
        return $this->phpOpenBaseDirectoryProtect;
268
    }
269
270
    /**
271
     * @param bool $phpOpenBaseDirectoryProtect
272
     * @return DomainUser
273
     */
274
    public function setPhpOpenBaseDirectoryProtect($phpOpenBaseDirectoryProtect)
275
    {
276
        $this->phpOpenBaseDirectoryProtect = $phpOpenBaseDirectoryProtect;
277
        return $this;
278
    }
279
280
    /**
281
     * @return bool
282
     */
283
    public function isUseCanonicalName()
284
    {
285
        return $this->useCanonicalName;
286
    }
287
288
    /**
289
     * @param bool $useCanonicalName
290
     * @return DomainUser
291
     */
292
    public function setUseCanonicalName($useCanonicalName)
293
    {
294
        $this->useCanonicalName = $useCanonicalName;
295
        return $this;
296
    }
297
298
    /**
299
     * @return string
300
     */
301
    public function getServerAdmin()
302
    {
303
        return $this->serverAdmin;
304
    }
305
306
    /**
307
     * @param string $serverAdmin
308
     * @return DomainUser
309
     */
310
    public function setServerAdmin($serverAdmin)
311
    {
312
        $this->serverAdmin = $serverAdmin;
313
        return $this;
314
    }
315
316
    /**
317
     * @return string
318
     */
319
    public function getServerAlias()
320
    {
321
        return $this->serverAlias;
322
    }
323
324
    /**
325
     * @param string $serverAlias
326
     * @return DomainUser
327
     */
328
    public function setServerAlias($serverAlias)
329
    {
330
        $this->serverAlias = $serverAlias;
331
        return $this;
332
    }
333
334
    /**
335
     * @return string
336
     */
337
    public function getDocumentRoot()
338
    {
339
        return $this->documentRoot;
340
    }
341
342
    /**
343
     * @param string $documentRoot
344
     * @return DomainUser
345
     */
346
    public function setDocumentRoot($documentRoot)
347
    {
348
        $this->documentRoot = $documentRoot;
349
        return $this;
350
    }
351
}
352