1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace CyberLine\SystemdState\Types; |
4
|
|
|
|
5
|
|
|
class Timer extends AbstractType |
6
|
|
|
{ |
7
|
|
|
private $AccuracyUSec; |
8
|
|
|
|
9
|
|
|
private $After = []; |
10
|
|
|
|
11
|
|
|
private $Conflicts = []; |
12
|
|
|
|
13
|
|
|
private $Documentation; |
14
|
|
|
|
15
|
|
|
private $FragmentPath; |
16
|
|
|
|
17
|
|
|
private $LastTriggerUSec; |
18
|
|
|
|
19
|
|
|
private $LastTriggerUSecMonotonic; |
20
|
|
|
|
21
|
|
|
private $NextElapseUSecMonotonic; |
22
|
|
|
|
23
|
|
|
private $NextElapseUSecRealtime; |
24
|
|
|
|
25
|
|
|
private $Persistent; |
26
|
|
|
|
27
|
|
|
private $RandomizedDelayUSec; |
28
|
|
|
|
29
|
|
|
private $RemainAfterElapse; |
30
|
|
|
|
31
|
|
|
private $Requires = []; |
32
|
|
|
|
33
|
|
|
private $RequiresMountsFor = []; |
34
|
|
|
|
35
|
|
|
private $Result; |
36
|
|
|
|
37
|
|
|
private $Triggers = []; |
38
|
|
|
|
39
|
|
|
private $Unit; |
40
|
|
|
|
41
|
|
|
private $UnitFilePreset; |
42
|
|
|
|
43
|
|
|
private $UnitFileState; |
44
|
|
|
|
45
|
|
|
private $WakeSystem; |
46
|
|
|
|
47
|
|
|
private $WantedBy = []; |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* @return mixed |
51
|
|
|
*/ |
52
|
|
|
public function getAccuracyUSec() |
53
|
|
|
{ |
54
|
|
|
return $this->AccuracyUSec; |
55
|
|
|
} |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @param mixed $AccuracyUSec |
59
|
|
|
* @return Timer |
60
|
|
|
*/ |
61
|
|
|
public function setAccuracyUSec($AccuracyUSec) |
62
|
|
|
{ |
63
|
|
|
$this->AccuracyUSec = $AccuracyUSec; |
64
|
|
|
return $this; |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* @return array |
69
|
|
|
*/ |
70
|
|
|
public function getAfter(): array |
71
|
|
|
{ |
72
|
|
|
return $this->After; |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @param array $After |
77
|
|
|
* @return Timer |
78
|
|
|
*/ |
79
|
|
|
public function setAfter(array $After): Timer |
80
|
|
|
{ |
81
|
|
|
$this->After = $After; |
82
|
|
|
return $this; |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @return array |
87
|
|
|
*/ |
88
|
|
|
public function getConflicts(): array |
89
|
|
|
{ |
90
|
|
|
return $this->Conflicts; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* @param array $Conflicts |
95
|
|
|
* @return Timer |
96
|
|
|
*/ |
97
|
|
|
public function setConflicts(array $Conflicts): Timer |
98
|
|
|
{ |
99
|
|
|
$this->Conflicts = $Conflicts; |
100
|
|
|
return $this; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @return mixed |
105
|
|
|
*/ |
106
|
|
|
public function getDocumentation() |
107
|
|
|
{ |
108
|
|
|
return $this->Documentation; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @param mixed $Documentation |
113
|
|
|
* @return Timer |
114
|
|
|
*/ |
115
|
|
|
public function setDocumentation($Documentation) |
116
|
|
|
{ |
117
|
|
|
$this->Documentation = $Documentation; |
118
|
|
|
return $this; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* @return mixed |
123
|
|
|
*/ |
124
|
|
|
public function getFragmentPath() |
125
|
|
|
{ |
126
|
|
|
return $this->FragmentPath; |
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* @param mixed $FragmentPath |
131
|
|
|
* @return Timer |
132
|
|
|
*/ |
133
|
|
|
public function setFragmentPath($FragmentPath) |
134
|
|
|
{ |
135
|
|
|
$this->FragmentPath = $FragmentPath; |
136
|
|
|
return $this; |
137
|
|
|
} |
138
|
|
|
|
139
|
|
|
/** |
140
|
|
|
* @return mixed |
141
|
|
|
*/ |
142
|
|
|
public function getLastTriggerUSec() |
143
|
|
|
{ |
144
|
|
|
return $this->LastTriggerUSec; |
145
|
|
|
} |
146
|
|
|
|
147
|
|
|
/** |
148
|
|
|
* @param mixed $LastTriggerUSec |
149
|
|
|
* @return Timer |
150
|
|
|
*/ |
151
|
|
|
public function setLastTriggerUSec($LastTriggerUSec) |
152
|
|
|
{ |
153
|
|
|
$this->LastTriggerUSec = $LastTriggerUSec; |
154
|
|
|
return $this; |
155
|
|
|
} |
156
|
|
|
|
157
|
|
|
/** |
158
|
|
|
* @return mixed |
159
|
|
|
*/ |
160
|
|
|
public function getLastTriggerUSecMonotonic() |
161
|
|
|
{ |
162
|
|
|
return $this->LastTriggerUSecMonotonic; |
163
|
|
|
} |
164
|
|
|
|
165
|
|
|
/** |
166
|
|
|
* @param mixed $LastTriggerUSecMonotonic |
167
|
|
|
* @return Timer |
168
|
|
|
*/ |
169
|
|
|
public function setLastTriggerUSecMonotonic($LastTriggerUSecMonotonic) |
170
|
|
|
{ |
171
|
|
|
$this->LastTriggerUSecMonotonic = $LastTriggerUSecMonotonic; |
172
|
|
|
return $this; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* @return mixed |
177
|
|
|
*/ |
178
|
|
|
public function getNextElapseUSecMonotonic() |
179
|
|
|
{ |
180
|
|
|
return $this->NextElapseUSecMonotonic; |
181
|
|
|
} |
182
|
|
|
|
183
|
|
|
/** |
184
|
|
|
* @param mixed $NextElapseUSecMonotonic |
185
|
|
|
* @return Timer |
186
|
|
|
*/ |
187
|
|
|
public function setNextElapseUSecMonotonic($NextElapseUSecMonotonic) |
188
|
|
|
{ |
189
|
|
|
$this->NextElapseUSecMonotonic = $NextElapseUSecMonotonic; |
190
|
|
|
return $this; |
191
|
|
|
} |
192
|
|
|
|
193
|
|
|
/** |
194
|
|
|
* @return mixed |
195
|
|
|
*/ |
196
|
|
|
public function getNextElapseUSecRealtime() |
197
|
|
|
{ |
198
|
|
|
return $this->NextElapseUSecRealtime; |
199
|
|
|
} |
200
|
|
|
|
201
|
|
|
/** |
202
|
|
|
* @param mixed $NextElapseUSecRealtime |
203
|
|
|
* @return Timer |
204
|
|
|
*/ |
205
|
|
|
public function setNextElapseUSecRealtime($NextElapseUSecRealtime) |
206
|
|
|
{ |
207
|
|
|
$this->NextElapseUSecRealtime = $NextElapseUSecRealtime; |
208
|
|
|
return $this; |
209
|
|
|
} |
210
|
|
|
|
211
|
|
|
/** |
212
|
|
|
* @return mixed |
213
|
|
|
*/ |
214
|
|
|
public function getPersistent() |
215
|
|
|
{ |
216
|
|
|
return $this->Persistent; |
217
|
|
|
} |
218
|
|
|
|
219
|
|
|
/** |
220
|
|
|
* @param mixed $Persistent |
221
|
|
|
* @return Timer |
222
|
|
|
*/ |
223
|
|
|
public function setPersistent($Persistent) |
224
|
|
|
{ |
225
|
|
|
$this->Persistent = $Persistent; |
226
|
|
|
return $this; |
227
|
|
|
} |
228
|
|
|
|
229
|
|
|
/** |
230
|
|
|
* @return mixed |
231
|
|
|
*/ |
232
|
|
|
public function getRandomizedDelayUSec() |
233
|
|
|
{ |
234
|
|
|
return $this->RandomizedDelayUSec; |
235
|
|
|
} |
236
|
|
|
|
237
|
|
|
/** |
238
|
|
|
* @param mixed $RandomizedDelayUSec |
239
|
|
|
* @return Timer |
240
|
|
|
*/ |
241
|
|
|
public function setRandomizedDelayUSec($RandomizedDelayUSec) |
242
|
|
|
{ |
243
|
|
|
$this->RandomizedDelayUSec = $RandomizedDelayUSec; |
244
|
|
|
return $this; |
245
|
|
|
} |
246
|
|
|
|
247
|
|
|
/** |
248
|
|
|
* @return mixed |
249
|
|
|
*/ |
250
|
|
|
public function getRemainAfterElapse() |
251
|
|
|
{ |
252
|
|
|
return $this->RemainAfterElapse; |
253
|
|
|
} |
254
|
|
|
|
255
|
|
|
/** |
256
|
|
|
* @param mixed $RemainAfterElapse |
257
|
|
|
* @return Timer |
258
|
|
|
*/ |
259
|
|
|
public function setRemainAfterElapse($RemainAfterElapse) |
260
|
|
|
{ |
261
|
|
|
$this->RemainAfterElapse = $RemainAfterElapse; |
262
|
|
|
return $this; |
263
|
|
|
} |
264
|
|
|
|
265
|
|
|
/** |
266
|
|
|
* @return array |
267
|
|
|
*/ |
268
|
|
|
public function getRequires(): array |
269
|
|
|
{ |
270
|
|
|
return $this->Requires; |
271
|
|
|
} |
272
|
|
|
|
273
|
|
|
/** |
274
|
|
|
* @param array $Requires |
275
|
|
|
* @return Timer |
276
|
|
|
*/ |
277
|
|
|
public function setRequires(array $Requires): Timer |
278
|
|
|
{ |
279
|
|
|
$this->Requires = $Requires; |
280
|
|
|
return $this; |
281
|
|
|
} |
282
|
|
|
|
283
|
|
|
/** |
284
|
|
|
* @return array |
285
|
|
|
*/ |
286
|
|
|
public function getRequiresMountsFor(): array |
287
|
|
|
{ |
288
|
|
|
return $this->RequiresMountsFor; |
289
|
|
|
} |
290
|
|
|
|
291
|
|
|
/** |
292
|
|
|
* @param array $RequiresMountsFor |
293
|
|
|
* @return Timer |
294
|
|
|
*/ |
295
|
|
|
public function setRequiresMountsFor(array $RequiresMountsFor): Timer |
296
|
|
|
{ |
297
|
|
|
$this->RequiresMountsFor = $RequiresMountsFor; |
298
|
|
|
return $this; |
299
|
|
|
} |
300
|
|
|
|
301
|
|
|
/** |
302
|
|
|
* @return mixed |
303
|
|
|
*/ |
304
|
|
|
public function getResult() |
305
|
|
|
{ |
306
|
|
|
return $this->Result; |
307
|
|
|
} |
308
|
|
|
|
309
|
|
|
/** |
310
|
|
|
* @param mixed $Result |
311
|
|
|
* @return Timer |
312
|
|
|
*/ |
313
|
|
|
public function setResult($Result) |
314
|
|
|
{ |
315
|
|
|
$this->Result = $Result; |
316
|
|
|
return $this; |
317
|
|
|
} |
318
|
|
|
|
319
|
|
|
/** |
320
|
|
|
* @return array |
321
|
|
|
*/ |
322
|
|
|
public function getTriggers(): array |
323
|
|
|
{ |
324
|
|
|
return $this->Triggers; |
325
|
|
|
} |
326
|
|
|
|
327
|
|
|
/** |
328
|
|
|
* @param array $Triggers |
329
|
|
|
* @return Timer |
330
|
|
|
*/ |
331
|
|
|
public function setTriggers(array $Triggers): Timer |
332
|
|
|
{ |
333
|
|
|
$this->Triggers = $Triggers; |
334
|
|
|
return $this; |
335
|
|
|
} |
336
|
|
|
|
337
|
|
|
/** |
338
|
|
|
* @return mixed |
339
|
|
|
*/ |
340
|
|
|
public function getUnit() |
341
|
|
|
{ |
342
|
|
|
return $this->Unit; |
343
|
|
|
} |
344
|
|
|
|
345
|
|
|
/** |
346
|
|
|
* @param mixed $Unit |
347
|
|
|
* @return Timer |
348
|
|
|
*/ |
349
|
|
|
public function setUnit($Unit) |
350
|
|
|
{ |
351
|
|
|
$this->Unit = $Unit; |
352
|
|
|
return $this; |
353
|
|
|
} |
354
|
|
|
|
355
|
|
|
/** |
356
|
|
|
* @return mixed |
357
|
|
|
*/ |
358
|
|
|
public function getUnitFilePreset() |
359
|
|
|
{ |
360
|
|
|
return $this->UnitFilePreset; |
361
|
|
|
} |
362
|
|
|
|
363
|
|
|
/** |
364
|
|
|
* @param mixed $UnitFilePreset |
365
|
|
|
* @return Timer |
366
|
|
|
*/ |
367
|
|
|
public function setUnitFilePreset($UnitFilePreset) |
368
|
|
|
{ |
369
|
|
|
$this->UnitFilePreset = $UnitFilePreset; |
370
|
|
|
return $this; |
371
|
|
|
} |
372
|
|
|
|
373
|
|
|
/** |
374
|
|
|
* @return mixed |
375
|
|
|
*/ |
376
|
|
|
public function getUnitFileState() |
377
|
|
|
{ |
378
|
|
|
return $this->UnitFileState; |
379
|
|
|
} |
380
|
|
|
|
381
|
|
|
/** |
382
|
|
|
* @param mixed $UnitFileState |
383
|
|
|
* @return Timer |
384
|
|
|
*/ |
385
|
|
|
public function setUnitFileState($UnitFileState) |
386
|
|
|
{ |
387
|
|
|
$this->UnitFileState = $UnitFileState; |
388
|
|
|
return $this; |
389
|
|
|
} |
390
|
|
|
|
391
|
|
|
/** |
392
|
|
|
* @return mixed |
393
|
|
|
*/ |
394
|
|
|
public function getWakeSystem() |
395
|
|
|
{ |
396
|
|
|
return $this->WakeSystem; |
397
|
|
|
} |
398
|
|
|
|
399
|
|
|
/** |
400
|
|
|
* @param mixed $WakeSystem |
401
|
|
|
* @return Timer |
402
|
|
|
*/ |
403
|
|
|
public function setWakeSystem($WakeSystem) |
404
|
|
|
{ |
405
|
|
|
$this->WakeSystem = $WakeSystem; |
406
|
|
|
return $this; |
407
|
|
|
} |
408
|
|
|
|
409
|
|
|
/** |
410
|
|
|
* @return array |
411
|
|
|
*/ |
412
|
|
|
public function getWantedBy(): array |
413
|
|
|
{ |
414
|
|
|
return $this->WantedBy; |
415
|
|
|
} |
416
|
|
|
|
417
|
|
|
/** |
418
|
|
|
* @param array $WantedBy |
419
|
|
|
* @return Timer |
420
|
|
|
*/ |
421
|
|
|
public function setWantedBy(array $WantedBy): Timer |
422
|
|
|
{ |
423
|
|
|
$this->WantedBy = $WantedBy; |
424
|
|
|
return $this; |
425
|
|
|
} |
426
|
|
|
} |
427
|
|
|
|