Complex classes like Systemd often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use Systemd, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
5 | class Systemd implements \JsonSerializable |
||
6 | { |
||
7 | /** @var string */ |
||
8 | protected $Architecture; |
||
9 | |||
10 | /** @var boolean */ |
||
11 | protected $ConfirmSpawn; |
||
12 | |||
13 | /** @var boolean */ |
||
14 | protected $DefaultBlockIOAccounting; |
||
15 | |||
16 | /** @var boolean */ |
||
17 | protected $DefaultCPUAccounting; |
||
18 | |||
19 | protected $DefaultLimitAS; |
||
20 | |||
21 | protected $DefaultLimitASSoft; |
||
22 | |||
23 | protected $DefaultLimitCORE; |
||
24 | |||
25 | protected $DefaultLimitCORESoft; |
||
26 | |||
27 | protected $DefaultLimitCPU; |
||
28 | |||
29 | protected $DefaultLimitCPUSoft; |
||
30 | |||
31 | protected $DefaultLimitDATA; |
||
32 | |||
33 | protected $DefaultLimitDATASoft; |
||
34 | |||
35 | protected $DefaultLimitFSIZE; |
||
36 | |||
37 | protected $DefaultLimitFSIZESoft; |
||
38 | |||
39 | protected $DefaultLimitLOCKS; |
||
40 | |||
41 | protected $DefaultLimitLOCKSSoft; |
||
42 | |||
43 | protected $DefaultLimitMEMLOCK; |
||
44 | |||
45 | protected $DefaultLimitMEMLOCKSoft; |
||
46 | |||
47 | protected $DefaultLimitMSGQUEUE; |
||
48 | |||
49 | protected $DefaultLimitMSGQUEUESoft; |
||
50 | |||
51 | protected $DefaultLimitNICE; |
||
52 | |||
53 | protected $DefaultLimitNICESoft; |
||
54 | |||
55 | protected $DefaultLimitNOFILE; |
||
56 | |||
57 | protected $DefaultLimitNOFILESoft; |
||
58 | |||
59 | protected $DefaultLimitNPROC; |
||
60 | |||
61 | protected $DefaultLimitNPROCSoft; |
||
62 | |||
63 | protected $DefaultLimitRSS; |
||
64 | |||
65 | protected $DefaultLimitRSSSoft; |
||
66 | |||
67 | protected $DefaultLimitRTPRIO; |
||
68 | |||
69 | protected $DefaultLimitRTPRIOSoft; |
||
70 | |||
71 | protected $DefaultLimitRTTIME; |
||
72 | |||
73 | protected $DefaultLimitRTTIMESoft; |
||
74 | |||
75 | protected $DefaultLimitSIGPENDING; |
||
76 | |||
77 | protected $DefaultLimitSIGPENDINGSoft; |
||
78 | |||
79 | protected $DefaultLimitSTACK; |
||
80 | |||
81 | protected $DefaultLimitSTACKSoft; |
||
82 | |||
83 | /** @var boolean */ |
||
84 | protected $DefaultMemoryAccounting; |
||
85 | |||
86 | /** @var string */ |
||
87 | protected $DefaultRestartUSec; |
||
88 | |||
89 | /** @var string */ |
||
90 | protected $DefaultStandardError; |
||
91 | |||
92 | /** @var string */ |
||
93 | protected $DefaultStandardOutput; |
||
94 | |||
95 | /** @var integer */ |
||
96 | protected $DefaultStartLimitBurst; |
||
97 | |||
98 | /** @var integer */ |
||
99 | protected $DefaultStartLimitInterval; |
||
100 | |||
101 | /** @var integer */ |
||
102 | protected $DefaultStartLimitIntervalSec; |
||
103 | |||
104 | /** @var boolean */ |
||
105 | protected $DefaultTasksAccounting; |
||
106 | |||
107 | protected $DefaultTasksMax; |
||
108 | |||
109 | /** @var string */ |
||
110 | protected $DefaultTimeoutStartUSec; |
||
111 | |||
112 | /** @var string */ |
||
113 | protected $DefaultTimeoutStopUSec; |
||
114 | |||
115 | /** @var string */ |
||
116 | protected $DefaultTimerAccuracyUSec; |
||
117 | |||
118 | /** @var array */ |
||
119 | protected $Environment = []; |
||
120 | |||
121 | /** @var array */ |
||
122 | protected $Features = []; |
||
123 | |||
124 | /** @var \DateTimeImmutable */ |
||
125 | protected $FinishTimestamp; |
||
126 | |||
127 | /** @var integer */ |
||
128 | protected $FinishTimestampMonotonic; |
||
129 | |||
130 | /** @var integer */ |
||
131 | protected $FirmwareTimestampMonotonic; |
||
132 | |||
133 | /** @var \DateTimeImmutable */ |
||
134 | protected $GeneratorsFinishTimestamp; |
||
135 | |||
136 | /** @var integer */ |
||
137 | protected $GeneratorsFinishTimestampMonotonic; |
||
138 | |||
139 | /** @var \DateTimeImmutable */ |
||
140 | protected $GeneratorsStartTimestamp; |
||
141 | |||
142 | /** @var integer */ |
||
143 | protected $GeneratorsStartTimestampMonotonic; |
||
144 | |||
145 | /** @var integer */ |
||
146 | protected $InitRDTimestampMonotonic; |
||
147 | |||
148 | /** @var \DateTimeImmutable */ |
||
149 | protected $KernelTimestamp; |
||
150 | |||
151 | /** @var integer */ |
||
152 | protected $KernelTimestampMonotonic; |
||
153 | |||
154 | /** @var integer */ |
||
155 | protected $LoaderTimestampMonotonic; |
||
156 | |||
157 | /** @var string */ |
||
158 | protected $LogLevel; |
||
159 | |||
160 | /** @var string */ |
||
161 | protected $LogTarget; |
||
162 | |||
163 | /** @var integer */ |
||
164 | protected $NFailedJobs; |
||
165 | |||
166 | /** @var integer */ |
||
167 | protected $NFailedUnits; |
||
168 | |||
169 | /** @var integer */ |
||
170 | protected $NInstalledJobs; |
||
171 | |||
172 | /** @var integer */ |
||
173 | protected $NJobs; |
||
174 | |||
175 | /** @var integer */ |
||
176 | protected $NNames; |
||
177 | |||
178 | protected $Progress; |
||
179 | |||
180 | /** @var integer */ |
||
181 | protected $RuntimeWatchdogUSec; |
||
182 | |||
183 | /** @var \DateTimeImmutable */ |
||
184 | protected $SecurityFinishTimestamp; |
||
185 | |||
186 | /** @var integer */ |
||
187 | protected $SecurityFinishTimestampMonotonic; |
||
188 | |||
189 | /** @var \DateTimeImmutable */ |
||
190 | protected $SecurityStartTimestamp; |
||
191 | |||
192 | /** @var integer */ |
||
193 | protected $SecurityStartTimestampMonotonic; |
||
194 | |||
195 | /** @var boolean */ |
||
196 | protected $ShowStatus; |
||
197 | |||
198 | /** @var string */ |
||
199 | protected $ShutdownWatchdogUSec; |
||
200 | |||
201 | /** @var string */ |
||
202 | protected $SystemState; |
||
203 | |||
204 | /** @var integer */ |
||
205 | protected $TimerSlackNSec; |
||
206 | |||
207 | /** @var array */ |
||
208 | protected $UnitPath = []; |
||
209 | |||
210 | /** @var \DateTimeImmutable */ |
||
211 | protected $UnitsLoadFinishTimestamp; |
||
212 | |||
213 | /** @var integer */ |
||
214 | protected $UnitsLoadFinishTimestampMonotonic; |
||
215 | |||
216 | /** @var \DateTimeImmutable */ |
||
217 | protected $UnitsLoadStartTimestamp; |
||
218 | |||
219 | /** @var integer */ |
||
220 | protected $UnitsLoadStartTimestampMonotonic; |
||
221 | |||
222 | /** @var \DateTimeImmutable */ |
||
223 | protected $UserspaceTimestamp; |
||
224 | |||
225 | /** @var integer */ |
||
226 | protected $UserspaceTimestampMonotonic; |
||
227 | |||
228 | /** @var integer */ |
||
229 | protected $Version; |
||
230 | |||
231 | /** @var string */ |
||
232 | protected $Virtualization; |
||
233 | |||
234 | /** |
||
235 | * @return string |
||
236 | */ |
||
237 | public function getArchitecture(): string |
||
241 | |||
242 | /** |
||
243 | * @param string $Architecture |
||
244 | * @return Systemd |
||
245 | */ |
||
246 | public function setArchitecture(string $Architecture): Systemd |
||
251 | |||
252 | /** |
||
253 | * @return bool |
||
254 | */ |
||
255 | public function isConfirmSpawn(): bool |
||
259 | |||
260 | /** |
||
261 | * @param bool $ConfirmSpawn |
||
262 | * @return Systemd |
||
263 | */ |
||
264 | public function setConfirmSpawn(bool $ConfirmSpawn): Systemd |
||
269 | |||
270 | /** |
||
271 | * @return bool |
||
272 | */ |
||
273 | public function isDefaultBlockIOAccounting(): bool |
||
277 | |||
278 | /** |
||
279 | * @param bool $DefaultBlockIOAccounting |
||
280 | * @return Systemd |
||
281 | */ |
||
282 | public function setDefaultBlockIOAccounting(bool $DefaultBlockIOAccounting): Systemd |
||
287 | |||
288 | /** |
||
289 | * @return bool |
||
290 | */ |
||
291 | public function isDefaultCPUAccounting(): bool |
||
295 | |||
296 | /** |
||
297 | * @param bool $DefaultCPUAccounting |
||
298 | * @return Systemd |
||
299 | */ |
||
300 | public function setDefaultCPUAccounting(bool $DefaultCPUAccounting): Systemd |
||
305 | |||
306 | /** |
||
307 | * @return mixed |
||
308 | */ |
||
309 | public function getDefaultLimitAS() |
||
313 | |||
314 | /** |
||
315 | * @param mixed $DefaultLimitAS |
||
316 | * @return Systemd |
||
317 | */ |
||
318 | public function setDefaultLimitAS($DefaultLimitAS) |
||
323 | |||
324 | /** |
||
325 | * @return mixed |
||
326 | */ |
||
327 | public function getDefaultLimitASSoft() |
||
331 | |||
332 | /** |
||
333 | * @param mixed $DefaultLimitASSoft |
||
334 | * @return Systemd |
||
335 | */ |
||
336 | public function setDefaultLimitASSoft($DefaultLimitASSoft) |
||
341 | |||
342 | /** |
||
343 | * @return mixed |
||
344 | */ |
||
345 | public function getDefaultLimitCORE() |
||
349 | |||
350 | /** |
||
351 | * @param mixed $DefaultLimitCORE |
||
352 | * @return Systemd |
||
353 | */ |
||
354 | public function setDefaultLimitCORE($DefaultLimitCORE) |
||
359 | |||
360 | /** |
||
361 | * @return mixed |
||
362 | */ |
||
363 | public function getDefaultLimitCORESoft() |
||
367 | |||
368 | /** |
||
369 | * @param mixed $DefaultLimitCORESoft |
||
370 | * @return Systemd |
||
371 | */ |
||
372 | public function setDefaultLimitCORESoft($DefaultLimitCORESoft) |
||
377 | |||
378 | /** |
||
379 | * @return mixed |
||
380 | */ |
||
381 | public function getDefaultLimitCPU() |
||
385 | |||
386 | /** |
||
387 | * @param mixed $DefaultLimitCPU |
||
388 | * @return Systemd |
||
389 | */ |
||
390 | public function setDefaultLimitCPU($DefaultLimitCPU) |
||
395 | |||
396 | /** |
||
397 | * @return mixed |
||
398 | */ |
||
399 | public function getDefaultLimitCPUSoft() |
||
403 | |||
404 | /** |
||
405 | * @param mixed $DefaultLimitCPUSoft |
||
406 | * @return Systemd |
||
407 | */ |
||
408 | public function setDefaultLimitCPUSoft($DefaultLimitCPUSoft) |
||
413 | |||
414 | /** |
||
415 | * @return mixed |
||
416 | */ |
||
417 | public function getDefaultLimitDATA() |
||
421 | |||
422 | /** |
||
423 | * @param mixed $DefaultLimitDATA |
||
424 | * @return Systemd |
||
425 | */ |
||
426 | public function setDefaultLimitDATA($DefaultLimitDATA) |
||
431 | |||
432 | /** |
||
433 | * @return mixed |
||
434 | */ |
||
435 | public function getDefaultLimitDATASoft() |
||
439 | |||
440 | /** |
||
441 | * @param mixed $DefaultLimitDATASoft |
||
442 | * @return Systemd |
||
443 | */ |
||
444 | public function setDefaultLimitDATASoft($DefaultLimitDATASoft) |
||
449 | |||
450 | /** |
||
451 | * @return mixed |
||
452 | */ |
||
453 | public function getDefaultLimitFSIZE() |
||
457 | |||
458 | /** |
||
459 | * @param mixed $DefaultLimitFSIZE |
||
460 | * @return Systemd |
||
461 | */ |
||
462 | public function setDefaultLimitFSIZE($DefaultLimitFSIZE) |
||
467 | |||
468 | /** |
||
469 | * @return mixed |
||
470 | */ |
||
471 | public function getDefaultLimitFSIZESoft() |
||
475 | |||
476 | /** |
||
477 | * @param mixed $DefaultLimitFSIZESoft |
||
478 | * @return Systemd |
||
479 | */ |
||
480 | public function setDefaultLimitFSIZESoft($DefaultLimitFSIZESoft) |
||
485 | |||
486 | /** |
||
487 | * @return mixed |
||
488 | */ |
||
489 | public function getDefaultLimitLOCKS() |
||
493 | |||
494 | /** |
||
495 | * @param mixed $DefaultLimitLOCKS |
||
496 | * @return Systemd |
||
497 | */ |
||
498 | public function setDefaultLimitLOCKS($DefaultLimitLOCKS) |
||
503 | |||
504 | /** |
||
505 | * @return mixed |
||
506 | */ |
||
507 | public function getDefaultLimitLOCKSSoft() |
||
511 | |||
512 | /** |
||
513 | * @param mixed $DefaultLimitLOCKSSoft |
||
514 | * @return Systemd |
||
515 | */ |
||
516 | public function setDefaultLimitLOCKSSoft($DefaultLimitLOCKSSoft) |
||
521 | |||
522 | /** |
||
523 | * @return mixed |
||
524 | */ |
||
525 | public function getDefaultLimitMEMLOCK() |
||
529 | |||
530 | /** |
||
531 | * @param mixed $DefaultLimitMEMLOCK |
||
532 | * @return Systemd |
||
533 | */ |
||
534 | public function setDefaultLimitMEMLOCK($DefaultLimitMEMLOCK) |
||
539 | |||
540 | /** |
||
541 | * @return mixed |
||
542 | */ |
||
543 | public function getDefaultLimitMEMLOCKSoft() |
||
547 | |||
548 | /** |
||
549 | * @param mixed $DefaultLimitMEMLOCKSoft |
||
550 | * @return Systemd |
||
551 | */ |
||
552 | public function setDefaultLimitMEMLOCKSoft($DefaultLimitMEMLOCKSoft) |
||
557 | |||
558 | /** |
||
559 | * @return mixed |
||
560 | */ |
||
561 | public function getDefaultLimitMSGQUEUE() |
||
565 | |||
566 | /** |
||
567 | * @param mixed $DefaultLimitMSGQUEUE |
||
568 | * @return Systemd |
||
569 | */ |
||
570 | public function setDefaultLimitMSGQUEUE($DefaultLimitMSGQUEUE) |
||
575 | |||
576 | /** |
||
577 | * @return mixed |
||
578 | */ |
||
579 | public function getDefaultLimitMSGQUEUESoft() |
||
583 | |||
584 | /** |
||
585 | * @param mixed $DefaultLimitMSGQUEUESoft |
||
586 | * @return Systemd |
||
587 | */ |
||
588 | public function setDefaultLimitMSGQUEUESoft($DefaultLimitMSGQUEUESoft) |
||
593 | |||
594 | /** |
||
595 | * @return mixed |
||
596 | */ |
||
597 | public function getDefaultLimitNICE() |
||
601 | |||
602 | /** |
||
603 | * @param mixed $DefaultLimitNICE |
||
604 | * @return Systemd |
||
605 | */ |
||
606 | public function setDefaultLimitNICE($DefaultLimitNICE) |
||
611 | |||
612 | /** |
||
613 | * @return mixed |
||
614 | */ |
||
615 | public function getDefaultLimitNICESoft() |
||
619 | |||
620 | /** |
||
621 | * @param mixed $DefaultLimitNICESoft |
||
622 | * @return Systemd |
||
623 | */ |
||
624 | public function setDefaultLimitNICESoft($DefaultLimitNICESoft) |
||
629 | |||
630 | /** |
||
631 | * @return mixed |
||
632 | */ |
||
633 | public function getDefaultLimitNOFILE() |
||
637 | |||
638 | /** |
||
639 | * @param mixed $DefaultLimitNOFILE |
||
640 | * @return Systemd |
||
641 | */ |
||
642 | public function setDefaultLimitNOFILE($DefaultLimitNOFILE) |
||
647 | |||
648 | /** |
||
649 | * @return mixed |
||
650 | */ |
||
651 | public function getDefaultLimitNOFILESoft() |
||
655 | |||
656 | /** |
||
657 | * @param mixed $DefaultLimitNOFILESoft |
||
658 | * @return Systemd |
||
659 | */ |
||
660 | public function setDefaultLimitNOFILESoft($DefaultLimitNOFILESoft) |
||
665 | |||
666 | /** |
||
667 | * @return mixed |
||
668 | */ |
||
669 | public function getDefaultLimitNPROC() |
||
673 | |||
674 | /** |
||
675 | * @param mixed $DefaultLimitNPROC |
||
676 | * @return Systemd |
||
677 | */ |
||
678 | public function setDefaultLimitNPROC($DefaultLimitNPROC) |
||
683 | |||
684 | /** |
||
685 | * @return mixed |
||
686 | */ |
||
687 | public function getDefaultLimitNPROCSoft() |
||
691 | |||
692 | /** |
||
693 | * @param mixed $DefaultLimitNPROCSoft |
||
694 | * @return Systemd |
||
695 | */ |
||
696 | public function setDefaultLimitNPROCSoft($DefaultLimitNPROCSoft) |
||
701 | |||
702 | /** |
||
703 | * @return mixed |
||
704 | */ |
||
705 | public function getDefaultLimitRSS() |
||
709 | |||
710 | /** |
||
711 | * @param mixed $DefaultLimitRSS |
||
712 | * @return Systemd |
||
713 | */ |
||
714 | public function setDefaultLimitRSS($DefaultLimitRSS) |
||
719 | |||
720 | /** |
||
721 | * @return mixed |
||
722 | */ |
||
723 | public function getDefaultLimitRSSSoft() |
||
727 | |||
728 | /** |
||
729 | * @param mixed $DefaultLimitRSSSoft |
||
730 | * @return Systemd |
||
731 | */ |
||
732 | public function setDefaultLimitRSSSoft($DefaultLimitRSSSoft) |
||
737 | |||
738 | /** |
||
739 | * @return mixed |
||
740 | */ |
||
741 | public function getDefaultLimitRTPRIO() |
||
745 | |||
746 | /** |
||
747 | * @param mixed $DefaultLimitRTPRIO |
||
748 | * @return Systemd |
||
749 | */ |
||
750 | public function setDefaultLimitRTPRIO($DefaultLimitRTPRIO) |
||
755 | |||
756 | /** |
||
757 | * @return mixed |
||
758 | */ |
||
759 | public function getDefaultLimitRTPRIOSoft() |
||
763 | |||
764 | /** |
||
765 | * @param mixed $DefaultLimitRTPRIOSoft |
||
766 | * @return Systemd |
||
767 | */ |
||
768 | public function setDefaultLimitRTPRIOSoft($DefaultLimitRTPRIOSoft) |
||
773 | |||
774 | /** |
||
775 | * @return mixed |
||
776 | */ |
||
777 | public function getDefaultLimitRTTIME() |
||
781 | |||
782 | /** |
||
783 | * @param mixed $DefaultLimitRTTIME |
||
784 | * @return Systemd |
||
785 | */ |
||
786 | public function setDefaultLimitRTTIME($DefaultLimitRTTIME) |
||
791 | |||
792 | /** |
||
793 | * @return mixed |
||
794 | */ |
||
795 | public function getDefaultLimitRTTIMESoft() |
||
799 | |||
800 | /** |
||
801 | * @param mixed $DefaultLimitRTTIMESoft |
||
802 | * @return Systemd |
||
803 | */ |
||
804 | public function setDefaultLimitRTTIMESoft($DefaultLimitRTTIMESoft) |
||
809 | |||
810 | /** |
||
811 | * @return mixed |
||
812 | */ |
||
813 | public function getDefaultLimitSIGPENDING() |
||
817 | |||
818 | /** |
||
819 | * @param mixed $DefaultLimitSIGPENDING |
||
820 | * @return Systemd |
||
821 | */ |
||
822 | public function setDefaultLimitSIGPENDING($DefaultLimitSIGPENDING) |
||
827 | |||
828 | /** |
||
829 | * @return mixed |
||
830 | */ |
||
831 | public function getDefaultLimitSIGPENDINGSoft() |
||
835 | |||
836 | /** |
||
837 | * @param mixed $DefaultLimitSIGPENDINGSoft |
||
838 | * @return Systemd |
||
839 | */ |
||
840 | public function setDefaultLimitSIGPENDINGSoft($DefaultLimitSIGPENDINGSoft) |
||
845 | |||
846 | /** |
||
847 | * @return mixed |
||
848 | */ |
||
849 | public function getDefaultLimitSTACK() |
||
853 | |||
854 | /** |
||
855 | * @param mixed $DefaultLimitSTACK |
||
856 | * @return Systemd |
||
857 | */ |
||
858 | public function setDefaultLimitSTACK($DefaultLimitSTACK) |
||
863 | |||
864 | /** |
||
865 | * @return mixed |
||
866 | */ |
||
867 | public function getDefaultLimitSTACKSoft() |
||
871 | |||
872 | /** |
||
873 | * @param mixed $DefaultLimitSTACKSoft |
||
874 | * @return Systemd |
||
875 | */ |
||
876 | public function setDefaultLimitSTACKSoft($DefaultLimitSTACKSoft) |
||
881 | |||
882 | /** |
||
883 | * @return bool |
||
884 | */ |
||
885 | public function isDefaultMemoryAccounting(): bool |
||
889 | |||
890 | /** |
||
891 | * @param bool $DefaultMemoryAccounting |
||
892 | * @return Systemd |
||
893 | */ |
||
894 | public function setDefaultMemoryAccounting(bool $DefaultMemoryAccounting): Systemd |
||
899 | |||
900 | /** |
||
901 | * @return string |
||
902 | */ |
||
903 | public function getDefaultRestartUSec(): string |
||
907 | |||
908 | /** |
||
909 | * @param string $DefaultRestartUSec |
||
910 | * @return Systemd |
||
911 | */ |
||
912 | public function setDefaultRestartUSec(string $DefaultRestartUSec): Systemd |
||
917 | |||
918 | /** |
||
919 | * @return string |
||
920 | */ |
||
921 | public function getDefaultStandardError(): string |
||
925 | |||
926 | /** |
||
927 | * @param string $DefaultStandardError |
||
928 | * @return Systemd |
||
929 | */ |
||
930 | public function setDefaultStandardError(string $DefaultStandardError): Systemd |
||
935 | |||
936 | /** |
||
937 | * @return string |
||
938 | */ |
||
939 | public function getDefaultStandardOutput(): string |
||
943 | |||
944 | /** |
||
945 | * @param string $DefaultStandardOutput |
||
946 | * @return Systemd |
||
947 | */ |
||
948 | public function setDefaultStandardOutput(string $DefaultStandardOutput): Systemd |
||
953 | |||
954 | /** |
||
955 | * @return int |
||
956 | */ |
||
957 | public function getDefaultStartLimitBurst(): int |
||
961 | |||
962 | /** |
||
963 | * @param int $DefaultStartLimitBurst |
||
964 | * @return Systemd |
||
965 | */ |
||
966 | public function setDefaultStartLimitBurst(int $DefaultStartLimitBurst): Systemd |
||
971 | |||
972 | /** |
||
973 | * @return int |
||
974 | */ |
||
975 | public function getDefaultStartLimitInterval(): int |
||
979 | |||
980 | /** |
||
981 | * @param int $DefaultStartLimitInterval |
||
982 | * @return Systemd |
||
983 | */ |
||
984 | public function setDefaultStartLimitInterval(int $DefaultStartLimitInterval): Systemd |
||
989 | |||
990 | /** |
||
991 | * @return int |
||
992 | */ |
||
993 | public function getDefaultStartLimitIntervalSec(): int |
||
997 | |||
998 | /** |
||
999 | * @param int $DefaultStartLimitIntervalSec |
||
1000 | * @return Systemd |
||
1001 | */ |
||
1002 | public function setDefaultStartLimitIntervalSec(int $DefaultStartLimitIntervalSec): Systemd |
||
1007 | |||
1008 | /** |
||
1009 | * @return bool |
||
1010 | */ |
||
1011 | public function isDefaultTasksAccounting(): bool |
||
1015 | |||
1016 | /** |
||
1017 | * @param bool $DefaultTasksAccounting |
||
1018 | * @return Systemd |
||
1019 | */ |
||
1020 | public function setDefaultTasksAccounting(bool $DefaultTasksAccounting): Systemd |
||
1025 | |||
1026 | /** |
||
1027 | * @return mixed |
||
1028 | */ |
||
1029 | public function getDefaultTasksMax() |
||
1033 | |||
1034 | /** |
||
1035 | * @param mixed $DefaultTasksMax |
||
1036 | * @return Systemd |
||
1037 | */ |
||
1038 | public function setDefaultTasksMax($DefaultTasksMax) |
||
1043 | |||
1044 | /** |
||
1045 | * @return string |
||
1046 | */ |
||
1047 | public function getDefaultTimeoutStartUSec(): string |
||
1051 | |||
1052 | /** |
||
1053 | * @param string $DefaultTimeoutStartUSec |
||
1054 | * @return Systemd |
||
1055 | */ |
||
1056 | public function setDefaultTimeoutStartUSec(string $DefaultTimeoutStartUSec): Systemd |
||
1061 | |||
1062 | /** |
||
1063 | * @return string |
||
1064 | */ |
||
1065 | public function getDefaultTimeoutStopUSec(): string |
||
1069 | |||
1070 | /** |
||
1071 | * @param string $DefaultTimeoutStopUSec |
||
1072 | * @return Systemd |
||
1073 | */ |
||
1074 | public function setDefaultTimeoutStopUSec(string $DefaultTimeoutStopUSec): Systemd |
||
1079 | |||
1080 | /** |
||
1081 | * @return string |
||
1082 | */ |
||
1083 | public function getDefaultTimerAccuracyUSec(): string |
||
1087 | |||
1088 | /** |
||
1089 | * @param string $DefaultTimerAccuracyUSec |
||
1090 | * @return Systemd |
||
1091 | */ |
||
1092 | public function setDefaultTimerAccuracyUSec(string $DefaultTimerAccuracyUSec): Systemd |
||
1097 | |||
1098 | /** |
||
1099 | * @return array |
||
1100 | */ |
||
1101 | public function getEnvironment(): array |
||
1105 | |||
1106 | /** |
||
1107 | * @param array $Environment |
||
1108 | * @return Systemd |
||
1109 | */ |
||
1110 | public function setEnvironment(array $Environment): Systemd |
||
1115 | |||
1116 | /** |
||
1117 | * @return array |
||
1118 | */ |
||
1119 | public function getFeatures(): array |
||
1123 | |||
1124 | /** |
||
1125 | * @param array $Features |
||
1126 | * @return Systemd |
||
1127 | */ |
||
1128 | public function setFeatures(array $Features): Systemd |
||
1133 | |||
1134 | /** |
||
1135 | * @return \DateTimeImmutable |
||
1136 | */ |
||
1137 | public function getFinishTimestamp(): \DateTimeImmutable |
||
1141 | |||
1142 | /** |
||
1143 | * @param \DateTimeImmutable $FinishTimestamp |
||
1144 | * @return Systemd |
||
1145 | */ |
||
1146 | public function setFinishTimestamp(\DateTimeImmutable $FinishTimestamp): Systemd |
||
1151 | |||
1152 | /** |
||
1153 | * @return int |
||
1154 | */ |
||
1155 | public function getFinishTimestampMonotonic(): int |
||
1159 | |||
1160 | /** |
||
1161 | * @param int $FinishTimestampMonotonic |
||
1162 | * @return Systemd |
||
1163 | */ |
||
1164 | public function setFinishTimestampMonotonic(int $FinishTimestampMonotonic): Systemd |
||
1169 | |||
1170 | /** |
||
1171 | * @return int |
||
1172 | */ |
||
1173 | public function getFirmwareTimestampMonotonic(): int |
||
1177 | |||
1178 | /** |
||
1179 | * @param int $FirmwareTimestampMonotonic |
||
1180 | * @return Systemd |
||
1181 | */ |
||
1182 | public function setFirmwareTimestampMonotonic(int $FirmwareTimestampMonotonic): Systemd |
||
1187 | |||
1188 | /** |
||
1189 | * @return \DateTimeImmutable |
||
1190 | */ |
||
1191 | public function getGeneratorsFinishTimestamp(): \DateTimeImmutable |
||
1195 | |||
1196 | /** |
||
1197 | * @param \DateTimeImmutable $GeneratorsFinishTimestamp |
||
1198 | * @return Systemd |
||
1199 | */ |
||
1200 | public function setGeneratorsFinishTimestamp(\DateTimeImmutable $GeneratorsFinishTimestamp): Systemd |
||
1205 | |||
1206 | /** |
||
1207 | * @return int |
||
1208 | */ |
||
1209 | public function getGeneratorsFinishTimestampMonotonic(): int |
||
1213 | |||
1214 | /** |
||
1215 | * @param int $GeneratorsFinishTimestampMonotonic |
||
1216 | * @return Systemd |
||
1217 | */ |
||
1218 | public function setGeneratorsFinishTimestampMonotonic(int $GeneratorsFinishTimestampMonotonic): Systemd |
||
1223 | |||
1224 | /** |
||
1225 | * @return \DateTimeImmutable |
||
1226 | */ |
||
1227 | public function getGeneratorsStartTimestamp(): \DateTimeImmutable |
||
1231 | |||
1232 | /** |
||
1233 | * @param \DateTimeImmutable $GeneratorsStartTimestamp |
||
1234 | * @return Systemd |
||
1235 | */ |
||
1236 | public function setGeneratorsStartTimestamp(\DateTimeImmutable $GeneratorsStartTimestamp): Systemd |
||
1241 | |||
1242 | /** |
||
1243 | * @return int |
||
1244 | */ |
||
1245 | public function getGeneratorsStartTimestampMonotonic(): int |
||
1249 | |||
1250 | /** |
||
1251 | * @param int $GeneratorsStartTimestampMonotonic |
||
1252 | * @return Systemd |
||
1253 | */ |
||
1254 | public function setGeneratorsStartTimestampMonotonic(int $GeneratorsStartTimestampMonotonic): Systemd |
||
1259 | |||
1260 | /** |
||
1261 | * @return int |
||
1262 | */ |
||
1263 | public function getInitRDTimestampMonotonic(): int |
||
1267 | |||
1268 | /** |
||
1269 | * @param int $InitRDTimestampMonotonic |
||
1270 | * @return Systemd |
||
1271 | */ |
||
1272 | public function setInitRDTimestampMonotonic(int $InitRDTimestampMonotonic): Systemd |
||
1277 | |||
1278 | /** |
||
1279 | * @return \DateTimeImmutable |
||
1280 | */ |
||
1281 | public function getKernelTimestamp(): \DateTimeImmutable |
||
1285 | |||
1286 | /** |
||
1287 | * @param \DateTimeImmutable $KernelTimestamp |
||
1288 | * @return Systemd |
||
1289 | */ |
||
1290 | public function setKernelTimestamp(\DateTimeImmutable $KernelTimestamp): Systemd |
||
1295 | |||
1296 | /** |
||
1297 | * @return int |
||
1298 | */ |
||
1299 | public function getKernelTimestampMonotonic(): int |
||
1303 | |||
1304 | /** |
||
1305 | * @param int $KernelTimestampMonotonic |
||
1306 | * @return Systemd |
||
1307 | */ |
||
1308 | public function setKernelTimestampMonotonic(int $KernelTimestampMonotonic): Systemd |
||
1313 | |||
1314 | /** |
||
1315 | * @return int |
||
1316 | */ |
||
1317 | public function getLoaderTimestampMonotonic(): int |
||
1321 | |||
1322 | /** |
||
1323 | * @param int $LoaderTimestampMonotonic |
||
1324 | * @return Systemd |
||
1325 | */ |
||
1326 | public function setLoaderTimestampMonotonic(int $LoaderTimestampMonotonic): Systemd |
||
1331 | |||
1332 | /** |
||
1333 | * @return string |
||
1334 | */ |
||
1335 | public function getLogLevel(): string |
||
1339 | |||
1340 | /** |
||
1341 | * @param string $LogLevel |
||
1342 | * @return Systemd |
||
1343 | */ |
||
1344 | public function setLogLevel(string $LogLevel): Systemd |
||
1349 | |||
1350 | /** |
||
1351 | * @return string |
||
1352 | */ |
||
1353 | public function getLogTarget(): string |
||
1357 | |||
1358 | /** |
||
1359 | * @param string $LogTarget |
||
1360 | * @return Systemd |
||
1361 | */ |
||
1362 | public function setLogTarget(string $LogTarget): Systemd |
||
1367 | |||
1368 | /** |
||
1369 | * @return int |
||
1370 | */ |
||
1371 | public function getNFailedJobs(): int |
||
1375 | |||
1376 | /** |
||
1377 | * @param int $NFailedJobs |
||
1378 | * @return Systemd |
||
1379 | */ |
||
1380 | public function setNFailedJobs(int $NFailedJobs): Systemd |
||
1385 | |||
1386 | /** |
||
1387 | * @return int |
||
1388 | */ |
||
1389 | public function getNFailedUnits(): int |
||
1393 | |||
1394 | /** |
||
1395 | * @param int $NFailedUnits |
||
1396 | * @return Systemd |
||
1397 | */ |
||
1398 | public function setNFailedUnits(int $NFailedUnits): Systemd |
||
1403 | |||
1404 | /** |
||
1405 | * @return int |
||
1406 | */ |
||
1407 | public function getNInstalledJobs(): int |
||
1411 | |||
1412 | /** |
||
1413 | * @param int $NInstalledJobs |
||
1414 | * @return Systemd |
||
1415 | */ |
||
1416 | public function setNInstalledJobs(int $NInstalledJobs): Systemd |
||
1421 | |||
1422 | /** |
||
1423 | * @return int |
||
1424 | */ |
||
1425 | public function getNJobs(): int |
||
1429 | |||
1430 | /** |
||
1431 | * @param int $NJobs |
||
1432 | * @return Systemd |
||
1433 | */ |
||
1434 | public function setNJobs(int $NJobs): Systemd |
||
1439 | |||
1440 | /** |
||
1441 | * @return int |
||
1442 | */ |
||
1443 | public function getNNames(): int |
||
1447 | |||
1448 | /** |
||
1449 | * @param int $NNames |
||
1450 | * @return Systemd |
||
1451 | */ |
||
1452 | public function setNNames(int $NNames): Systemd |
||
1457 | |||
1458 | /** |
||
1459 | * @return mixed |
||
1460 | */ |
||
1461 | public function getProgress() |
||
1465 | |||
1466 | /** |
||
1467 | * @param mixed $Progress |
||
1468 | * @return Systemd |
||
1469 | */ |
||
1470 | public function setProgress($Progress) |
||
1475 | |||
1476 | /** |
||
1477 | * @return int |
||
1478 | */ |
||
1479 | public function getRuntimeWatchdogUSec(): int |
||
1483 | |||
1484 | /** |
||
1485 | * @param int $RuntimeWatchdogUSec |
||
1486 | * @return Systemd |
||
1487 | */ |
||
1488 | public function setRuntimeWatchdogUSec(int $RuntimeWatchdogUSec): Systemd |
||
1493 | |||
1494 | /** |
||
1495 | * @return \DateTimeImmutable |
||
1496 | */ |
||
1497 | public function getSecurityFinishTimestamp(): \DateTimeImmutable |
||
1501 | |||
1502 | /** |
||
1503 | * @param \DateTimeImmutable $SecurityFinishTimestamp |
||
1504 | * @return Systemd |
||
1505 | */ |
||
1506 | public function setSecurityFinishTimestamp(\DateTimeImmutable $SecurityFinishTimestamp): Systemd |
||
1511 | |||
1512 | /** |
||
1513 | * @return int |
||
1514 | */ |
||
1515 | public function getSecurityFinishTimestampMonotonic(): int |
||
1519 | |||
1520 | /** |
||
1521 | * @param int $SecurityFinishTimestampMonotonic |
||
1522 | * @return Systemd |
||
1523 | */ |
||
1524 | public function setSecurityFinishTimestampMonotonic(int $SecurityFinishTimestampMonotonic): Systemd |
||
1529 | |||
1530 | /** |
||
1531 | * @return \DateTimeImmutable |
||
1532 | */ |
||
1533 | public function getSecurityStartTimestamp(): \DateTimeImmutable |
||
1537 | |||
1538 | /** |
||
1539 | * @param \DateTimeImmutable $SecurityStartTimestamp |
||
1540 | * @return Systemd |
||
1541 | */ |
||
1542 | public function setSecurityStartTimestamp(\DateTimeImmutable $SecurityStartTimestamp): Systemd |
||
1547 | |||
1548 | /** |
||
1549 | * @return int |
||
1550 | */ |
||
1551 | public function getSecurityStartTimestampMonotonic(): int |
||
1555 | |||
1556 | /** |
||
1557 | * @param int $SecurityStartTimestampMonotonic |
||
1558 | * @return Systemd |
||
1559 | */ |
||
1560 | public function setSecurityStartTimestampMonotonic(int $SecurityStartTimestampMonotonic): Systemd |
||
1565 | |||
1566 | /** |
||
1567 | * @return bool |
||
1568 | */ |
||
1569 | public function isShowStatus(): bool |
||
1573 | |||
1574 | /** |
||
1575 | * @param bool $ShowStatus |
||
1576 | * @return Systemd |
||
1577 | */ |
||
1578 | public function setShowStatus(bool $ShowStatus): Systemd |
||
1583 | |||
1584 | /** |
||
1585 | * @return string |
||
1586 | */ |
||
1587 | public function getShutdownWatchdogUSec(): string |
||
1591 | |||
1592 | /** |
||
1593 | * @param string $ShutdownWatchdogUSec |
||
1594 | * @return Systemd |
||
1595 | */ |
||
1596 | public function setShutdownWatchdogUSec(string $ShutdownWatchdogUSec): Systemd |
||
1601 | |||
1602 | /** |
||
1603 | * @return string |
||
1604 | */ |
||
1605 | public function getSystemState(): string |
||
1609 | |||
1610 | /** |
||
1611 | * @param string $SystemState |
||
1612 | * @return Systemd |
||
1613 | */ |
||
1614 | public function setSystemState(string $SystemState): Systemd |
||
1619 | |||
1620 | /** |
||
1621 | * @return int |
||
1622 | */ |
||
1623 | public function getTimerSlackNSec(): int |
||
1627 | |||
1628 | /** |
||
1629 | * @param int $TimerSlackNSec |
||
1630 | * @return Systemd |
||
1631 | */ |
||
1632 | public function setTimerSlackNSec(int $TimerSlackNSec): Systemd |
||
1637 | |||
1638 | /** |
||
1639 | * @return array |
||
1640 | */ |
||
1641 | public function getUnitPath(): array |
||
1645 | |||
1646 | /** |
||
1647 | * @param array $UnitPath |
||
1648 | * @return Systemd |
||
1649 | */ |
||
1650 | public function setUnitPath(array $UnitPath): Systemd |
||
1655 | |||
1656 | /** |
||
1657 | * @return \DateTimeImmutable |
||
1658 | */ |
||
1659 | public function getUnitsLoadFinishTimestamp(): \DateTimeImmutable |
||
1663 | |||
1664 | /** |
||
1665 | * @param \DateTimeImmutable $UnitsLoadFinishTimestamp |
||
1666 | * @return Systemd |
||
1667 | */ |
||
1668 | public function setUnitsLoadFinishTimestamp(\DateTimeImmutable $UnitsLoadFinishTimestamp): Systemd |
||
1673 | |||
1674 | /** |
||
1675 | * @return int |
||
1676 | */ |
||
1677 | public function getUnitsLoadFinishTimestampMonotonic(): int |
||
1681 | |||
1682 | /** |
||
1683 | * @param int $UnitsLoadFinishTimestampMonotonic |
||
1684 | * @return Systemd |
||
1685 | */ |
||
1686 | public function setUnitsLoadFinishTimestampMonotonic(int $UnitsLoadFinishTimestampMonotonic): Systemd |
||
1691 | |||
1692 | /** |
||
1693 | * @return \DateTimeImmutable |
||
1694 | */ |
||
1695 | public function getUnitsLoadStartTimestamp(): \DateTimeImmutable |
||
1699 | |||
1700 | /** |
||
1701 | * @param \DateTimeImmutable $UnitsLoadStartTimestamp |
||
1702 | * @return Systemd |
||
1703 | */ |
||
1704 | public function setUnitsLoadStartTimestamp(\DateTimeImmutable $UnitsLoadStartTimestamp): Systemd |
||
1709 | |||
1710 | /** |
||
1711 | * @return int |
||
1712 | */ |
||
1713 | public function getUnitsLoadStartTimestampMonotonic(): int |
||
1717 | |||
1718 | /** |
||
1719 | * @param int $UnitsLoadStartTimestampMonotonic |
||
1720 | * @return Systemd |
||
1721 | */ |
||
1722 | public function setUnitsLoadStartTimestampMonotonic(int $UnitsLoadStartTimestampMonotonic): Systemd |
||
1727 | |||
1728 | /** |
||
1729 | * @return \DateTimeImmutable |
||
1730 | */ |
||
1731 | public function getUserspaceTimestamp(): \DateTimeImmutable |
||
1735 | |||
1736 | /** |
||
1737 | * @param \DateTimeImmutable $UserspaceTimestamp |
||
1738 | * @return Systemd |
||
1739 | */ |
||
1740 | public function setUserspaceTimestamp(\DateTimeImmutable $UserspaceTimestamp): Systemd |
||
1745 | |||
1746 | /** |
||
1747 | * @return int |
||
1748 | */ |
||
1749 | public function getUserspaceTimestampMonotonic(): int |
||
1753 | |||
1754 | /** |
||
1755 | * @param int $UserspaceTimestampMonotonic |
||
1756 | * @return Systemd |
||
1757 | */ |
||
1758 | public function setUserspaceTimestampMonotonic(int $UserspaceTimestampMonotonic): Systemd |
||
1763 | |||
1764 | /** |
||
1765 | * @return int |
||
1766 | */ |
||
1767 | public function getVersion(): int |
||
1771 | |||
1772 | /** |
||
1773 | * @param int $Version |
||
1774 | * @return Systemd |
||
1775 | */ |
||
1776 | public function setVersion(int $Version): Systemd |
||
1781 | |||
1782 | /** |
||
1783 | * @return string |
||
1784 | */ |
||
1785 | public function getVirtualization(): string |
||
1789 | |||
1790 | /** |
||
1791 | * @param string $Virtualization |
||
1792 | * @return Systemd |
||
1793 | */ |
||
1794 | public function setVirtualization(string $Virtualization): Systemd |
||
1799 | |||
1800 | public function getId() |
||
1804 | |||
1805 | public function jsonSerialize() |
||
1809 | } |
||
1810 |