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