1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace CyberLine\SystemdState\Types; |
4
|
|
|
|
5
|
|
|
class Automount extends AbstractType |
6
|
|
|
{ |
7
|
|
|
private $After = []; |
8
|
|
|
|
9
|
|
|
private $DirectoryMode; |
10
|
|
|
|
11
|
|
|
private $Documentation = []; |
12
|
|
|
|
13
|
|
|
private $FragmentPath; |
14
|
|
|
|
15
|
|
|
private $Requires = []; |
16
|
|
|
|
17
|
|
|
private $RequiresMountsFor = []; |
18
|
|
|
|
19
|
|
|
private $Result; |
20
|
|
|
|
21
|
|
|
private $TimeoutIdleUSec; |
22
|
|
|
|
23
|
|
|
private $Triggers = []; |
24
|
|
|
|
25
|
|
|
private $UnitFilePreset; |
26
|
|
|
|
27
|
|
|
private $UnitFileState; |
28
|
|
|
|
29
|
|
|
private $WantedBy = []; |
30
|
|
|
|
31
|
|
|
private $Where; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @return array |
35
|
|
|
*/ |
36
|
|
|
public function getAfter(): array |
37
|
|
|
{ |
38
|
|
|
return $this->After; |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @param array $After |
43
|
|
|
* @return Automount |
44
|
|
|
*/ |
45
|
|
|
public function setAfter(array $After): Automount |
46
|
|
|
{ |
47
|
|
|
$this->After = $After; |
48
|
|
|
return $this; |
49
|
|
|
} |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @return mixed |
53
|
|
|
*/ |
54
|
|
|
public function getDirectoryMode() |
55
|
|
|
{ |
56
|
|
|
return $this->DirectoryMode; |
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @param mixed $DirectoryMode |
61
|
|
|
* @return Automount |
62
|
|
|
*/ |
63
|
|
|
public function setDirectoryMode($DirectoryMode) |
64
|
|
|
{ |
65
|
|
|
$this->DirectoryMode = $DirectoryMode; |
66
|
|
|
return $this; |
67
|
|
|
} |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @return array |
71
|
|
|
*/ |
72
|
|
|
public function getDocumentation(): array |
73
|
|
|
{ |
74
|
|
|
return $this->Documentation; |
75
|
|
|
} |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* @param array $Documentation |
79
|
|
|
* @return Automount |
80
|
|
|
*/ |
81
|
|
|
public function setDocumentation(array $Documentation): Automount |
82
|
|
|
{ |
83
|
|
|
$this->Documentation = $Documentation; |
84
|
|
|
return $this; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @return mixed |
89
|
|
|
*/ |
90
|
|
|
public function getFragmentPath() |
91
|
|
|
{ |
92
|
|
|
return $this->FragmentPath; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @param mixed $FragmentPath |
97
|
|
|
* @return Automount |
98
|
|
|
*/ |
99
|
|
|
public function setFragmentPath($FragmentPath) |
100
|
|
|
{ |
101
|
|
|
$this->FragmentPath = $FragmentPath; |
102
|
|
|
return $this; |
103
|
|
|
} |
104
|
|
|
|
105
|
|
|
/** |
106
|
|
|
* @return array |
107
|
|
|
*/ |
108
|
|
|
public function getRequires(): array |
109
|
|
|
{ |
110
|
|
|
return $this->Requires; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
/** |
114
|
|
|
* @param array $Requires |
115
|
|
|
* @return Automount |
116
|
|
|
*/ |
117
|
|
|
public function setRequires(array $Requires): Automount |
118
|
|
|
{ |
119
|
|
|
$this->Requires = $Requires; |
120
|
|
|
return $this; |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* @return array |
125
|
|
|
*/ |
126
|
|
|
public function getRequiresMountsFor(): array |
127
|
|
|
{ |
128
|
|
|
return $this->RequiresMountsFor; |
129
|
|
|
} |
130
|
|
|
|
131
|
|
|
/** |
132
|
|
|
* @param array $RequiresMountsFor |
133
|
|
|
* @return Automount |
134
|
|
|
*/ |
135
|
|
|
public function setRequiresMountsFor(array $RequiresMountsFor): Automount |
136
|
|
|
{ |
137
|
|
|
$this->RequiresMountsFor = $RequiresMountsFor; |
138
|
|
|
return $this; |
139
|
|
|
} |
140
|
|
|
|
141
|
|
|
/** |
142
|
|
|
* @return mixed |
143
|
|
|
*/ |
144
|
|
|
public function getResult() |
145
|
|
|
{ |
146
|
|
|
return $this->Result; |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
/** |
150
|
|
|
* @param mixed $Result |
151
|
|
|
* @return Automount |
152
|
|
|
*/ |
153
|
|
|
public function setResult($Result) |
154
|
|
|
{ |
155
|
|
|
$this->Result = $Result; |
156
|
|
|
return $this; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @return mixed |
161
|
|
|
*/ |
162
|
|
|
public function getTimeoutIdleUSec() |
163
|
|
|
{ |
164
|
|
|
return $this->TimeoutIdleUSec; |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
/** |
168
|
|
|
* @param mixed $TimeoutIdleUSec |
169
|
|
|
* @return Automount |
170
|
|
|
*/ |
171
|
|
|
public function setTimeoutIdleUSec($TimeoutIdleUSec) |
172
|
|
|
{ |
173
|
|
|
$this->TimeoutIdleUSec = $TimeoutIdleUSec; |
174
|
|
|
return $this; |
175
|
|
|
} |
176
|
|
|
|
177
|
|
|
/** |
178
|
|
|
* @return array |
179
|
|
|
*/ |
180
|
|
|
public function getTriggers(): array |
181
|
|
|
{ |
182
|
|
|
return $this->Triggers; |
183
|
|
|
} |
184
|
|
|
|
185
|
|
|
/** |
186
|
|
|
* @param array $Triggers |
187
|
|
|
* @return Automount |
188
|
|
|
*/ |
189
|
|
|
public function setTriggers(array $Triggers): Automount |
190
|
|
|
{ |
191
|
|
|
$this->Triggers = $Triggers; |
192
|
|
|
return $this; |
193
|
|
|
} |
194
|
|
|
|
195
|
|
|
/** |
196
|
|
|
* @return mixed |
197
|
|
|
*/ |
198
|
|
|
public function getUnitFilePreset() |
199
|
|
|
{ |
200
|
|
|
return $this->UnitFilePreset; |
201
|
|
|
} |
202
|
|
|
|
203
|
|
|
/** |
204
|
|
|
* @param mixed $UnitFilePreset |
205
|
|
|
* @return Automount |
206
|
|
|
*/ |
207
|
|
|
public function setUnitFilePreset($UnitFilePreset) |
208
|
|
|
{ |
209
|
|
|
$this->UnitFilePreset = $UnitFilePreset; |
210
|
|
|
return $this; |
211
|
|
|
} |
212
|
|
|
|
213
|
|
|
/** |
214
|
|
|
* @return mixed |
215
|
|
|
*/ |
216
|
|
|
public function getUnitFileState() |
217
|
|
|
{ |
218
|
|
|
return $this->UnitFileState; |
219
|
|
|
} |
220
|
|
|
|
221
|
|
|
/** |
222
|
|
|
* @param mixed $UnitFileState |
223
|
|
|
* @return Automount |
224
|
|
|
*/ |
225
|
|
|
public function setUnitFileState($UnitFileState) |
226
|
|
|
{ |
227
|
|
|
$this->UnitFileState = $UnitFileState; |
228
|
|
|
return $this; |
229
|
|
|
} |
230
|
|
|
|
231
|
|
|
/** |
232
|
|
|
* @return array |
233
|
|
|
*/ |
234
|
|
|
public function getWantedBy(): array |
235
|
|
|
{ |
236
|
|
|
return $this->WantedBy; |
237
|
|
|
} |
238
|
|
|
|
239
|
|
|
/** |
240
|
|
|
* @param array $WantedBy |
241
|
|
|
* @return Automount |
242
|
|
|
*/ |
243
|
|
|
public function setWantedBy(array $WantedBy): Automount |
244
|
|
|
{ |
245
|
|
|
$this->WantedBy = $WantedBy; |
246
|
|
|
return $this; |
247
|
|
|
} |
248
|
|
|
|
249
|
|
|
/** |
250
|
|
|
* @return mixed |
251
|
|
|
*/ |
252
|
|
|
public function getWhere() |
253
|
|
|
{ |
254
|
|
|
return $this->Where; |
255
|
|
|
} |
256
|
|
|
|
257
|
|
|
/** |
258
|
|
|
* @param mixed $Where |
259
|
|
|
* @return Automount |
260
|
|
|
*/ |
261
|
|
|
public function setWhere($Where) |
262
|
|
|
{ |
263
|
|
|
$this->Where = $Where; |
264
|
|
|
return $this; |
265
|
|
|
} |
266
|
|
|
} |
267
|
|
|
|