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 \DateTimeImmutable */ |
||
146 | protected $InitRDTimestamp; |
||
147 | |||
148 | /** @var integer */ |
||
149 | protected $InitRDTimestampMonotonic; |
||
150 | |||
151 | /** @var \DateTimeImmutable */ |
||
152 | protected $KernelTimestamp; |
||
153 | |||
154 | /** @var integer */ |
||
155 | protected $KernelTimestampMonotonic; |
||
156 | |||
157 | /** @var integer */ |
||
158 | protected $LoaderTimestampMonotonic; |
||
159 | |||
160 | /** @var string */ |
||
161 | protected $LogLevel; |
||
162 | |||
163 | /** @var string */ |
||
164 | protected $LogTarget; |
||
165 | |||
166 | /** @var integer */ |
||
167 | protected $NFailedJobs; |
||
168 | |||
169 | /** @var integer */ |
||
170 | protected $NFailedUnits; |
||
171 | |||
172 | /** @var integer */ |
||
173 | protected $NInstalledJobs; |
||
174 | |||
175 | /** @var integer */ |
||
176 | protected $NJobs; |
||
177 | |||
178 | /** @var integer */ |
||
179 | protected $NNames; |
||
180 | |||
181 | protected $Progress; |
||
182 | |||
183 | /** @var integer */ |
||
184 | protected $RuntimeWatchdogUSec; |
||
185 | |||
186 | /** @var \DateTimeImmutable */ |
||
187 | protected $SecurityFinishTimestamp; |
||
188 | |||
189 | /** @var integer */ |
||
190 | protected $SecurityFinishTimestampMonotonic; |
||
191 | |||
192 | /** @var \DateTimeImmutable */ |
||
193 | protected $SecurityStartTimestamp; |
||
194 | |||
195 | /** @var integer */ |
||
196 | protected $SecurityStartTimestampMonotonic; |
||
197 | |||
198 | /** @var boolean */ |
||
199 | protected $ShowStatus; |
||
200 | |||
201 | /** @var string */ |
||
202 | protected $ShutdownWatchdogUSec; |
||
203 | |||
204 | /** @var string */ |
||
205 | protected $SystemState; |
||
206 | |||
207 | /** @var integer */ |
||
208 | protected $TimerSlackNSec; |
||
209 | |||
210 | /** @var array */ |
||
211 | protected $UnitPath = []; |
||
212 | |||
213 | /** @var \DateTimeImmutable */ |
||
214 | protected $UnitsLoadFinishTimestamp; |
||
215 | |||
216 | /** @var integer */ |
||
217 | protected $UnitsLoadFinishTimestampMonotonic; |
||
218 | |||
219 | /** @var \DateTimeImmutable */ |
||
220 | protected $UnitsLoadStartTimestamp; |
||
221 | |||
222 | /** @var integer */ |
||
223 | protected $UnitsLoadStartTimestampMonotonic; |
||
224 | |||
225 | /** @var \DateTimeImmutable */ |
||
226 | protected $UserspaceTimestamp; |
||
227 | |||
228 | /** @var integer */ |
||
229 | protected $UserspaceTimestampMonotonic; |
||
230 | |||
231 | /** @var integer */ |
||
232 | protected $Version; |
||
233 | |||
234 | /** @var string */ |
||
235 | protected $Virtualization; |
||
236 | |||
237 | /** |
||
238 | * @return string |
||
239 | */ |
||
240 | public function getArchitecture(): string |
||
244 | |||
245 | /** |
||
246 | * @param string $Architecture |
||
247 | * @return Systemd |
||
248 | */ |
||
249 | public function setArchitecture(string $Architecture): Systemd |
||
254 | |||
255 | /** |
||
256 | * @return bool |
||
257 | */ |
||
258 | public function isConfirmSpawn(): bool |
||
262 | |||
263 | /** |
||
264 | * @param bool $ConfirmSpawn |
||
265 | * @return Systemd |
||
266 | */ |
||
267 | public function setConfirmSpawn(bool $ConfirmSpawn): Systemd |
||
272 | |||
273 | /** |
||
274 | * @return bool |
||
275 | */ |
||
276 | public function isDefaultBlockIOAccounting(): bool |
||
280 | |||
281 | /** |
||
282 | * @param bool $DefaultBlockIOAccounting |
||
283 | * @return Systemd |
||
284 | */ |
||
285 | public function setDefaultBlockIOAccounting(bool $DefaultBlockIOAccounting): Systemd |
||
290 | |||
291 | /** |
||
292 | * @return bool |
||
293 | */ |
||
294 | public function isDefaultCPUAccounting(): bool |
||
298 | |||
299 | /** |
||
300 | * @param bool $DefaultCPUAccounting |
||
301 | * @return Systemd |
||
302 | */ |
||
303 | public function setDefaultCPUAccounting(bool $DefaultCPUAccounting): Systemd |
||
308 | |||
309 | /** |
||
310 | * @return mixed |
||
311 | */ |
||
312 | public function getDefaultLimitAS() |
||
316 | |||
317 | /** |
||
318 | * @param mixed $DefaultLimitAS |
||
319 | * @return Systemd |
||
320 | */ |
||
321 | public function setDefaultLimitAS($DefaultLimitAS) |
||
326 | |||
327 | /** |
||
328 | * @return mixed |
||
329 | */ |
||
330 | public function getDefaultLimitASSoft() |
||
334 | |||
335 | /** |
||
336 | * @param mixed $DefaultLimitASSoft |
||
337 | * @return Systemd |
||
338 | */ |
||
339 | public function setDefaultLimitASSoft($DefaultLimitASSoft) |
||
344 | |||
345 | /** |
||
346 | * @return mixed |
||
347 | */ |
||
348 | public function getDefaultLimitCORE() |
||
352 | |||
353 | /** |
||
354 | * @param mixed $DefaultLimitCORE |
||
355 | * @return Systemd |
||
356 | */ |
||
357 | public function setDefaultLimitCORE($DefaultLimitCORE) |
||
362 | |||
363 | /** |
||
364 | * @return mixed |
||
365 | */ |
||
366 | public function getDefaultLimitCORESoft() |
||
370 | |||
371 | /** |
||
372 | * @param mixed $DefaultLimitCORESoft |
||
373 | * @return Systemd |
||
374 | */ |
||
375 | public function setDefaultLimitCORESoft($DefaultLimitCORESoft) |
||
380 | |||
381 | /** |
||
382 | * @return mixed |
||
383 | */ |
||
384 | public function getDefaultLimitCPU() |
||
388 | |||
389 | /** |
||
390 | * @param mixed $DefaultLimitCPU |
||
391 | * @return Systemd |
||
392 | */ |
||
393 | public function setDefaultLimitCPU($DefaultLimitCPU) |
||
398 | |||
399 | /** |
||
400 | * @return mixed |
||
401 | */ |
||
402 | public function getDefaultLimitCPUSoft() |
||
406 | |||
407 | /** |
||
408 | * @param mixed $DefaultLimitCPUSoft |
||
409 | * @return Systemd |
||
410 | */ |
||
411 | public function setDefaultLimitCPUSoft($DefaultLimitCPUSoft) |
||
416 | |||
417 | /** |
||
418 | * @return mixed |
||
419 | */ |
||
420 | public function getDefaultLimitDATA() |
||
424 | |||
425 | /** |
||
426 | * @param mixed $DefaultLimitDATA |
||
427 | * @return Systemd |
||
428 | */ |
||
429 | public function setDefaultLimitDATA($DefaultLimitDATA) |
||
434 | |||
435 | /** |
||
436 | * @return mixed |
||
437 | */ |
||
438 | public function getDefaultLimitDATASoft() |
||
442 | |||
443 | /** |
||
444 | * @param mixed $DefaultLimitDATASoft |
||
445 | * @return Systemd |
||
446 | */ |
||
447 | public function setDefaultLimitDATASoft($DefaultLimitDATASoft) |
||
452 | |||
453 | /** |
||
454 | * @return mixed |
||
455 | */ |
||
456 | public function getDefaultLimitFSIZE() |
||
460 | |||
461 | /** |
||
462 | * @param mixed $DefaultLimitFSIZE |
||
463 | * @return Systemd |
||
464 | */ |
||
465 | public function setDefaultLimitFSIZE($DefaultLimitFSIZE) |
||
470 | |||
471 | /** |
||
472 | * @return mixed |
||
473 | */ |
||
474 | public function getDefaultLimitFSIZESoft() |
||
478 | |||
479 | /** |
||
480 | * @param mixed $DefaultLimitFSIZESoft |
||
481 | * @return Systemd |
||
482 | */ |
||
483 | public function setDefaultLimitFSIZESoft($DefaultLimitFSIZESoft) |
||
488 | |||
489 | /** |
||
490 | * @return mixed |
||
491 | */ |
||
492 | public function getDefaultLimitLOCKS() |
||
496 | |||
497 | /** |
||
498 | * @param mixed $DefaultLimitLOCKS |
||
499 | * @return Systemd |
||
500 | */ |
||
501 | public function setDefaultLimitLOCKS($DefaultLimitLOCKS) |
||
506 | |||
507 | /** |
||
508 | * @return mixed |
||
509 | */ |
||
510 | public function getDefaultLimitLOCKSSoft() |
||
514 | |||
515 | /** |
||
516 | * @param mixed $DefaultLimitLOCKSSoft |
||
517 | * @return Systemd |
||
518 | */ |
||
519 | public function setDefaultLimitLOCKSSoft($DefaultLimitLOCKSSoft) |
||
524 | |||
525 | /** |
||
526 | * @return mixed |
||
527 | */ |
||
528 | public function getDefaultLimitMEMLOCK() |
||
532 | |||
533 | /** |
||
534 | * @param mixed $DefaultLimitMEMLOCK |
||
535 | * @return Systemd |
||
536 | */ |
||
537 | public function setDefaultLimitMEMLOCK($DefaultLimitMEMLOCK) |
||
542 | |||
543 | /** |
||
544 | * @return mixed |
||
545 | */ |
||
546 | public function getDefaultLimitMEMLOCKSoft() |
||
550 | |||
551 | /** |
||
552 | * @param mixed $DefaultLimitMEMLOCKSoft |
||
553 | * @return Systemd |
||
554 | */ |
||
555 | public function setDefaultLimitMEMLOCKSoft($DefaultLimitMEMLOCKSoft) |
||
560 | |||
561 | /** |
||
562 | * @return mixed |
||
563 | */ |
||
564 | public function getDefaultLimitMSGQUEUE() |
||
568 | |||
569 | /** |
||
570 | * @param mixed $DefaultLimitMSGQUEUE |
||
571 | * @return Systemd |
||
572 | */ |
||
573 | public function setDefaultLimitMSGQUEUE($DefaultLimitMSGQUEUE) |
||
578 | |||
579 | /** |
||
580 | * @return mixed |
||
581 | */ |
||
582 | public function getDefaultLimitMSGQUEUESoft() |
||
586 | |||
587 | /** |
||
588 | * @param mixed $DefaultLimitMSGQUEUESoft |
||
589 | * @return Systemd |
||
590 | */ |
||
591 | public function setDefaultLimitMSGQUEUESoft($DefaultLimitMSGQUEUESoft) |
||
596 | |||
597 | /** |
||
598 | * @return mixed |
||
599 | */ |
||
600 | public function getDefaultLimitNICE() |
||
604 | |||
605 | /** |
||
606 | * @param mixed $DefaultLimitNICE |
||
607 | * @return Systemd |
||
608 | */ |
||
609 | public function setDefaultLimitNICE($DefaultLimitNICE) |
||
614 | |||
615 | /** |
||
616 | * @return mixed |
||
617 | */ |
||
618 | public function getDefaultLimitNICESoft() |
||
622 | |||
623 | /** |
||
624 | * @param mixed $DefaultLimitNICESoft |
||
625 | * @return Systemd |
||
626 | */ |
||
627 | public function setDefaultLimitNICESoft($DefaultLimitNICESoft) |
||
632 | |||
633 | /** |
||
634 | * @return mixed |
||
635 | */ |
||
636 | public function getDefaultLimitNOFILE() |
||
640 | |||
641 | /** |
||
642 | * @param mixed $DefaultLimitNOFILE |
||
643 | * @return Systemd |
||
644 | */ |
||
645 | public function setDefaultLimitNOFILE($DefaultLimitNOFILE) |
||
650 | |||
651 | /** |
||
652 | * @return mixed |
||
653 | */ |
||
654 | public function getDefaultLimitNOFILESoft() |
||
658 | |||
659 | /** |
||
660 | * @param mixed $DefaultLimitNOFILESoft |
||
661 | * @return Systemd |
||
662 | */ |
||
663 | public function setDefaultLimitNOFILESoft($DefaultLimitNOFILESoft) |
||
668 | |||
669 | /** |
||
670 | * @return mixed |
||
671 | */ |
||
672 | public function getDefaultLimitNPROC() |
||
676 | |||
677 | /** |
||
678 | * @param mixed $DefaultLimitNPROC |
||
679 | * @return Systemd |
||
680 | */ |
||
681 | public function setDefaultLimitNPROC($DefaultLimitNPROC) |
||
686 | |||
687 | /** |
||
688 | * @return mixed |
||
689 | */ |
||
690 | public function getDefaultLimitNPROCSoft() |
||
694 | |||
695 | /** |
||
696 | * @param mixed $DefaultLimitNPROCSoft |
||
697 | * @return Systemd |
||
698 | */ |
||
699 | public function setDefaultLimitNPROCSoft($DefaultLimitNPROCSoft) |
||
704 | |||
705 | /** |
||
706 | * @return mixed |
||
707 | */ |
||
708 | public function getDefaultLimitRSS() |
||
712 | |||
713 | /** |
||
714 | * @param mixed $DefaultLimitRSS |
||
715 | * @return Systemd |
||
716 | */ |
||
717 | public function setDefaultLimitRSS($DefaultLimitRSS) |
||
722 | |||
723 | /** |
||
724 | * @return mixed |
||
725 | */ |
||
726 | public function getDefaultLimitRSSSoft() |
||
730 | |||
731 | /** |
||
732 | * @param mixed $DefaultLimitRSSSoft |
||
733 | * @return Systemd |
||
734 | */ |
||
735 | public function setDefaultLimitRSSSoft($DefaultLimitRSSSoft) |
||
740 | |||
741 | /** |
||
742 | * @return mixed |
||
743 | */ |
||
744 | public function getDefaultLimitRTPRIO() |
||
748 | |||
749 | /** |
||
750 | * @param mixed $DefaultLimitRTPRIO |
||
751 | * @return Systemd |
||
752 | */ |
||
753 | public function setDefaultLimitRTPRIO($DefaultLimitRTPRIO) |
||
758 | |||
759 | /** |
||
760 | * @return mixed |
||
761 | */ |
||
762 | public function getDefaultLimitRTPRIOSoft() |
||
766 | |||
767 | /** |
||
768 | * @param mixed $DefaultLimitRTPRIOSoft |
||
769 | * @return Systemd |
||
770 | */ |
||
771 | public function setDefaultLimitRTPRIOSoft($DefaultLimitRTPRIOSoft) |
||
776 | |||
777 | /** |
||
778 | * @return mixed |
||
779 | */ |
||
780 | public function getDefaultLimitRTTIME() |
||
784 | |||
785 | /** |
||
786 | * @param mixed $DefaultLimitRTTIME |
||
787 | * @return Systemd |
||
788 | */ |
||
789 | public function setDefaultLimitRTTIME($DefaultLimitRTTIME) |
||
794 | |||
795 | /** |
||
796 | * @return mixed |
||
797 | */ |
||
798 | public function getDefaultLimitRTTIMESoft() |
||
802 | |||
803 | /** |
||
804 | * @param mixed $DefaultLimitRTTIMESoft |
||
805 | * @return Systemd |
||
806 | */ |
||
807 | public function setDefaultLimitRTTIMESoft($DefaultLimitRTTIMESoft) |
||
812 | |||
813 | /** |
||
814 | * @return mixed |
||
815 | */ |
||
816 | public function getDefaultLimitSIGPENDING() |
||
820 | |||
821 | /** |
||
822 | * @param mixed $DefaultLimitSIGPENDING |
||
823 | * @return Systemd |
||
824 | */ |
||
825 | public function setDefaultLimitSIGPENDING($DefaultLimitSIGPENDING) |
||
830 | |||
831 | /** |
||
832 | * @return mixed |
||
833 | */ |
||
834 | public function getDefaultLimitSIGPENDINGSoft() |
||
838 | |||
839 | /** |
||
840 | * @param mixed $DefaultLimitSIGPENDINGSoft |
||
841 | * @return Systemd |
||
842 | */ |
||
843 | public function setDefaultLimitSIGPENDINGSoft($DefaultLimitSIGPENDINGSoft) |
||
848 | |||
849 | /** |
||
850 | * @return mixed |
||
851 | */ |
||
852 | public function getDefaultLimitSTACK() |
||
856 | |||
857 | /** |
||
858 | * @param mixed $DefaultLimitSTACK |
||
859 | * @return Systemd |
||
860 | */ |
||
861 | public function setDefaultLimitSTACK($DefaultLimitSTACK) |
||
866 | |||
867 | /** |
||
868 | * @return mixed |
||
869 | */ |
||
870 | public function getDefaultLimitSTACKSoft() |
||
874 | |||
875 | /** |
||
876 | * @param mixed $DefaultLimitSTACKSoft |
||
877 | * @return Systemd |
||
878 | */ |
||
879 | public function setDefaultLimitSTACKSoft($DefaultLimitSTACKSoft) |
||
884 | |||
885 | /** |
||
886 | * @return bool |
||
887 | */ |
||
888 | public function isDefaultMemoryAccounting(): bool |
||
892 | |||
893 | /** |
||
894 | * @param bool $DefaultMemoryAccounting |
||
895 | * @return Systemd |
||
896 | */ |
||
897 | public function setDefaultMemoryAccounting(bool $DefaultMemoryAccounting): Systemd |
||
902 | |||
903 | /** |
||
904 | * @return string |
||
905 | */ |
||
906 | public function getDefaultRestartUSec(): string |
||
910 | |||
911 | /** |
||
912 | * @param string $DefaultRestartUSec |
||
913 | * @return Systemd |
||
914 | */ |
||
915 | public function setDefaultRestartUSec(string $DefaultRestartUSec): Systemd |
||
920 | |||
921 | /** |
||
922 | * @return string |
||
923 | */ |
||
924 | public function getDefaultStandardError(): string |
||
928 | |||
929 | /** |
||
930 | * @param string $DefaultStandardError |
||
931 | * @return Systemd |
||
932 | */ |
||
933 | public function setDefaultStandardError(string $DefaultStandardError): Systemd |
||
938 | |||
939 | /** |
||
940 | * @return string |
||
941 | */ |
||
942 | public function getDefaultStandardOutput(): string |
||
946 | |||
947 | /** |
||
948 | * @param string $DefaultStandardOutput |
||
949 | * @return Systemd |
||
950 | */ |
||
951 | public function setDefaultStandardOutput(string $DefaultStandardOutput): Systemd |
||
956 | |||
957 | /** |
||
958 | * @return int |
||
959 | */ |
||
960 | public function getDefaultStartLimitBurst(): int |
||
964 | |||
965 | /** |
||
966 | * @param int $DefaultStartLimitBurst |
||
967 | * @return Systemd |
||
968 | */ |
||
969 | public function setDefaultStartLimitBurst(int $DefaultStartLimitBurst): Systemd |
||
974 | |||
975 | /** |
||
976 | * @return int |
||
977 | */ |
||
978 | public function getDefaultStartLimitInterval(): int |
||
982 | |||
983 | /** |
||
984 | * @param int $DefaultStartLimitInterval |
||
985 | * @return Systemd |
||
986 | */ |
||
987 | public function setDefaultStartLimitInterval(int $DefaultStartLimitInterval): Systemd |
||
992 | |||
993 | /** |
||
994 | * @return int |
||
995 | */ |
||
996 | public function getDefaultStartLimitIntervalSec(): int |
||
1000 | |||
1001 | /** |
||
1002 | * @param int $DefaultStartLimitIntervalSec |
||
1003 | * @return Systemd |
||
1004 | */ |
||
1005 | public function setDefaultStartLimitIntervalSec(int $DefaultStartLimitIntervalSec): Systemd |
||
1010 | |||
1011 | /** |
||
1012 | * @return bool |
||
1013 | */ |
||
1014 | public function isDefaultTasksAccounting(): bool |
||
1018 | |||
1019 | /** |
||
1020 | * @param bool $DefaultTasksAccounting |
||
1021 | * @return Systemd |
||
1022 | */ |
||
1023 | public function setDefaultTasksAccounting(bool $DefaultTasksAccounting): Systemd |
||
1028 | |||
1029 | /** |
||
1030 | * @return mixed |
||
1031 | */ |
||
1032 | public function getDefaultTasksMax() |
||
1036 | |||
1037 | /** |
||
1038 | * @param mixed $DefaultTasksMax |
||
1039 | * @return Systemd |
||
1040 | */ |
||
1041 | public function setDefaultTasksMax($DefaultTasksMax) |
||
1046 | |||
1047 | /** |
||
1048 | * @return string |
||
1049 | */ |
||
1050 | public function getDefaultTimeoutStartUSec(): string |
||
1054 | |||
1055 | /** |
||
1056 | * @param string $DefaultTimeoutStartUSec |
||
1057 | * @return Systemd |
||
1058 | */ |
||
1059 | public function setDefaultTimeoutStartUSec(string $DefaultTimeoutStartUSec): Systemd |
||
1064 | |||
1065 | /** |
||
1066 | * @return string |
||
1067 | */ |
||
1068 | public function getDefaultTimeoutStopUSec(): string |
||
1072 | |||
1073 | /** |
||
1074 | * @param string $DefaultTimeoutStopUSec |
||
1075 | * @return Systemd |
||
1076 | */ |
||
1077 | public function setDefaultTimeoutStopUSec(string $DefaultTimeoutStopUSec): Systemd |
||
1082 | |||
1083 | /** |
||
1084 | * @return string |
||
1085 | */ |
||
1086 | public function getDefaultTimerAccuracyUSec(): string |
||
1090 | |||
1091 | /** |
||
1092 | * @param string $DefaultTimerAccuracyUSec |
||
1093 | * @return Systemd |
||
1094 | */ |
||
1095 | public function setDefaultTimerAccuracyUSec(string $DefaultTimerAccuracyUSec): Systemd |
||
1100 | |||
1101 | /** |
||
1102 | * @return array |
||
1103 | */ |
||
1104 | public function getEnvironment(): array |
||
1108 | |||
1109 | /** |
||
1110 | * @param array $Environment |
||
1111 | * @return Systemd |
||
1112 | */ |
||
1113 | public function setEnvironment(array $Environment): Systemd |
||
1118 | |||
1119 | /** |
||
1120 | * @return array |
||
1121 | */ |
||
1122 | public function getFeatures(): array |
||
1126 | |||
1127 | /** |
||
1128 | * @param array $Features |
||
1129 | * @return Systemd |
||
1130 | */ |
||
1131 | public function setFeatures(array $Features): Systemd |
||
1136 | |||
1137 | /** |
||
1138 | * @return \DateTimeImmutable |
||
1139 | */ |
||
1140 | public function getFinishTimestamp(): \DateTimeImmutable |
||
1144 | |||
1145 | /** |
||
1146 | * @param \DateTimeImmutable $FinishTimestamp |
||
1147 | * @return Systemd |
||
1148 | */ |
||
1149 | public function setFinishTimestamp(\DateTimeImmutable $FinishTimestamp): Systemd |
||
1154 | |||
1155 | /** |
||
1156 | * @return int |
||
1157 | */ |
||
1158 | public function getFinishTimestampMonotonic(): int |
||
1162 | |||
1163 | /** |
||
1164 | * @param int $FinishTimestampMonotonic |
||
1165 | * @return Systemd |
||
1166 | */ |
||
1167 | public function setFinishTimestampMonotonic(int $FinishTimestampMonotonic): Systemd |
||
1172 | |||
1173 | /** |
||
1174 | * @return int |
||
1175 | */ |
||
1176 | public function getFirmwareTimestampMonotonic(): int |
||
1180 | |||
1181 | /** |
||
1182 | * @param int $FirmwareTimestampMonotonic |
||
1183 | * @return Systemd |
||
1184 | */ |
||
1185 | public function setFirmwareTimestampMonotonic(int $FirmwareTimestampMonotonic): Systemd |
||
1190 | |||
1191 | /** |
||
1192 | * @return \DateTimeImmutable |
||
1193 | */ |
||
1194 | public function getGeneratorsFinishTimestamp(): \DateTimeImmutable |
||
1198 | |||
1199 | /** |
||
1200 | * @param \DateTimeImmutable $GeneratorsFinishTimestamp |
||
1201 | * @return Systemd |
||
1202 | */ |
||
1203 | public function setGeneratorsFinishTimestamp(\DateTimeImmutable $GeneratorsFinishTimestamp): Systemd |
||
1208 | |||
1209 | /** |
||
1210 | * @return int |
||
1211 | */ |
||
1212 | public function getGeneratorsFinishTimestampMonotonic(): int |
||
1216 | |||
1217 | /** |
||
1218 | * @param int $GeneratorsFinishTimestampMonotonic |
||
1219 | * @return Systemd |
||
1220 | */ |
||
1221 | public function setGeneratorsFinishTimestampMonotonic(int $GeneratorsFinishTimestampMonotonic): Systemd |
||
1226 | |||
1227 | /** |
||
1228 | * @return \DateTimeImmutable |
||
1229 | */ |
||
1230 | public function getGeneratorsStartTimestamp(): \DateTimeImmutable |
||
1234 | |||
1235 | /** |
||
1236 | * @param \DateTimeImmutable $GeneratorsStartTimestamp |
||
1237 | * @return Systemd |
||
1238 | */ |
||
1239 | public function setGeneratorsStartTimestamp(\DateTimeImmutable $GeneratorsStartTimestamp): Systemd |
||
1244 | |||
1245 | /** |
||
1246 | * @return int |
||
1247 | */ |
||
1248 | public function getGeneratorsStartTimestampMonotonic(): int |
||
1252 | |||
1253 | /** |
||
1254 | * @param int $GeneratorsStartTimestampMonotonic |
||
1255 | * @return Systemd |
||
1256 | */ |
||
1257 | public function setGeneratorsStartTimestampMonotonic(int $GeneratorsStartTimestampMonotonic): Systemd |
||
1262 | |||
1263 | /** |
||
1264 | * @return \DateTimeImmutable |
||
1265 | */ |
||
1266 | public function getInitRDTimestamp(): \DateTimeImmutable |
||
1270 | |||
1271 | /** |
||
1272 | * @param \DateTimeImmutable $InitRDTimestamp |
||
1273 | * @return Systemd |
||
1274 | */ |
||
1275 | public function setInitRDTimestamp(\DateTimeImmutable $InitRDTimestamp): Systemd |
||
1280 | |||
1281 | /** |
||
1282 | * @return int |
||
1283 | */ |
||
1284 | public function getInitRDTimestampMonotonic(): int |
||
1288 | |||
1289 | /** |
||
1290 | * @param int $InitRDTimestampMonotonic |
||
1291 | * @return Systemd |
||
1292 | */ |
||
1293 | public function setInitRDTimestampMonotonic(int $InitRDTimestampMonotonic): Systemd |
||
1298 | |||
1299 | /** |
||
1300 | * @return \DateTimeImmutable |
||
1301 | */ |
||
1302 | public function getKernelTimestamp(): \DateTimeImmutable |
||
1306 | |||
1307 | /** |
||
1308 | * @param \DateTimeImmutable $KernelTimestamp |
||
1309 | * @return Systemd |
||
1310 | */ |
||
1311 | public function setKernelTimestamp(\DateTimeImmutable $KernelTimestamp): Systemd |
||
1316 | |||
1317 | /** |
||
1318 | * @return int |
||
1319 | */ |
||
1320 | public function getKernelTimestampMonotonic(): int |
||
1324 | |||
1325 | /** |
||
1326 | * @param int $KernelTimestampMonotonic |
||
1327 | * @return Systemd |
||
1328 | */ |
||
1329 | public function setKernelTimestampMonotonic(int $KernelTimestampMonotonic): Systemd |
||
1334 | |||
1335 | /** |
||
1336 | * @return int |
||
1337 | */ |
||
1338 | public function getLoaderTimestampMonotonic(): int |
||
1342 | |||
1343 | /** |
||
1344 | * @param int $LoaderTimestampMonotonic |
||
1345 | * @return Systemd |
||
1346 | */ |
||
1347 | public function setLoaderTimestampMonotonic(int $LoaderTimestampMonotonic): Systemd |
||
1352 | |||
1353 | /** |
||
1354 | * @return string |
||
1355 | */ |
||
1356 | public function getLogLevel(): string |
||
1360 | |||
1361 | /** |
||
1362 | * @param string $LogLevel |
||
1363 | * @return Systemd |
||
1364 | */ |
||
1365 | public function setLogLevel(string $LogLevel): Systemd |
||
1370 | |||
1371 | /** |
||
1372 | * @return string |
||
1373 | */ |
||
1374 | public function getLogTarget(): string |
||
1378 | |||
1379 | /** |
||
1380 | * @param string $LogTarget |
||
1381 | * @return Systemd |
||
1382 | */ |
||
1383 | public function setLogTarget(string $LogTarget): Systemd |
||
1388 | |||
1389 | /** |
||
1390 | * @return int |
||
1391 | */ |
||
1392 | public function getNFailedJobs(): int |
||
1396 | |||
1397 | /** |
||
1398 | * @param int $NFailedJobs |
||
1399 | * @return Systemd |
||
1400 | */ |
||
1401 | public function setNFailedJobs(int $NFailedJobs): Systemd |
||
1406 | |||
1407 | /** |
||
1408 | * @return int |
||
1409 | */ |
||
1410 | public function getNFailedUnits(): int |
||
1414 | |||
1415 | /** |
||
1416 | * @param int $NFailedUnits |
||
1417 | * @return Systemd |
||
1418 | */ |
||
1419 | public function setNFailedUnits(int $NFailedUnits): Systemd |
||
1424 | |||
1425 | /** |
||
1426 | * @return int |
||
1427 | */ |
||
1428 | public function getNInstalledJobs(): int |
||
1432 | |||
1433 | /** |
||
1434 | * @param int $NInstalledJobs |
||
1435 | * @return Systemd |
||
1436 | */ |
||
1437 | public function setNInstalledJobs(int $NInstalledJobs): Systemd |
||
1442 | |||
1443 | /** |
||
1444 | * @return int |
||
1445 | */ |
||
1446 | public function getNJobs(): int |
||
1450 | |||
1451 | /** |
||
1452 | * @param int $NJobs |
||
1453 | * @return Systemd |
||
1454 | */ |
||
1455 | public function setNJobs(int $NJobs): Systemd |
||
1460 | |||
1461 | /** |
||
1462 | * @return int |
||
1463 | */ |
||
1464 | public function getNNames(): int |
||
1468 | |||
1469 | /** |
||
1470 | * @param int $NNames |
||
1471 | * @return Systemd |
||
1472 | */ |
||
1473 | public function setNNames(int $NNames): Systemd |
||
1478 | |||
1479 | /** |
||
1480 | * @return mixed |
||
1481 | */ |
||
1482 | public function getProgress() |
||
1486 | |||
1487 | /** |
||
1488 | * @param mixed $Progress |
||
1489 | * @return Systemd |
||
1490 | */ |
||
1491 | public function setProgress($Progress) |
||
1496 | |||
1497 | /** |
||
1498 | * @return int |
||
1499 | */ |
||
1500 | public function getRuntimeWatchdogUSec(): int |
||
1504 | |||
1505 | /** |
||
1506 | * @param int $RuntimeWatchdogUSec |
||
1507 | * @return Systemd |
||
1508 | */ |
||
1509 | public function setRuntimeWatchdogUSec(int $RuntimeWatchdogUSec): Systemd |
||
1514 | |||
1515 | /** |
||
1516 | * @return \DateTimeImmutable |
||
1517 | */ |
||
1518 | public function getSecurityFinishTimestamp(): \DateTimeImmutable |
||
1522 | |||
1523 | /** |
||
1524 | * @param \DateTimeImmutable $SecurityFinishTimestamp |
||
1525 | * @return Systemd |
||
1526 | */ |
||
1527 | public function setSecurityFinishTimestamp(\DateTimeImmutable $SecurityFinishTimestamp): Systemd |
||
1532 | |||
1533 | /** |
||
1534 | * @return int |
||
1535 | */ |
||
1536 | public function getSecurityFinishTimestampMonotonic(): int |
||
1540 | |||
1541 | /** |
||
1542 | * @param int $SecurityFinishTimestampMonotonic |
||
1543 | * @return Systemd |
||
1544 | */ |
||
1545 | public function setSecurityFinishTimestampMonotonic(int $SecurityFinishTimestampMonotonic): Systemd |
||
1550 | |||
1551 | /** |
||
1552 | * @return \DateTimeImmutable |
||
1553 | */ |
||
1554 | public function getSecurityStartTimestamp(): \DateTimeImmutable |
||
1558 | |||
1559 | /** |
||
1560 | * @param \DateTimeImmutable $SecurityStartTimestamp |
||
1561 | * @return Systemd |
||
1562 | */ |
||
1563 | public function setSecurityStartTimestamp(\DateTimeImmutable $SecurityStartTimestamp): Systemd |
||
1568 | |||
1569 | /** |
||
1570 | * @return int |
||
1571 | */ |
||
1572 | public function getSecurityStartTimestampMonotonic(): int |
||
1576 | |||
1577 | /** |
||
1578 | * @param int $SecurityStartTimestampMonotonic |
||
1579 | * @return Systemd |
||
1580 | */ |
||
1581 | public function setSecurityStartTimestampMonotonic(int $SecurityStartTimestampMonotonic): Systemd |
||
1586 | |||
1587 | /** |
||
1588 | * @return bool |
||
1589 | */ |
||
1590 | public function isShowStatus(): bool |
||
1594 | |||
1595 | /** |
||
1596 | * @param bool $ShowStatus |
||
1597 | * @return Systemd |
||
1598 | */ |
||
1599 | public function setShowStatus(bool $ShowStatus): Systemd |
||
1604 | |||
1605 | /** |
||
1606 | * @return string |
||
1607 | */ |
||
1608 | public function getShutdownWatchdogUSec(): string |
||
1612 | |||
1613 | /** |
||
1614 | * @param string $ShutdownWatchdogUSec |
||
1615 | * @return Systemd |
||
1616 | */ |
||
1617 | public function setShutdownWatchdogUSec(string $ShutdownWatchdogUSec): Systemd |
||
1622 | |||
1623 | /** |
||
1624 | * @return string |
||
1625 | */ |
||
1626 | public function getSystemState(): string |
||
1630 | |||
1631 | /** |
||
1632 | * @param string $SystemState |
||
1633 | * @return Systemd |
||
1634 | */ |
||
1635 | public function setSystemState(string $SystemState): Systemd |
||
1640 | |||
1641 | /** |
||
1642 | * @return int |
||
1643 | */ |
||
1644 | public function getTimerSlackNSec(): int |
||
1648 | |||
1649 | /** |
||
1650 | * @param int $TimerSlackNSec |
||
1651 | * @return Systemd |
||
1652 | */ |
||
1653 | public function setTimerSlackNSec(int $TimerSlackNSec): Systemd |
||
1658 | |||
1659 | /** |
||
1660 | * @return array |
||
1661 | */ |
||
1662 | public function getUnitPath(): array |
||
1666 | |||
1667 | /** |
||
1668 | * @param array $UnitPath |
||
1669 | * @return Systemd |
||
1670 | */ |
||
1671 | public function setUnitPath(array $UnitPath): Systemd |
||
1676 | |||
1677 | /** |
||
1678 | * @return \DateTimeImmutable |
||
1679 | */ |
||
1680 | public function getUnitsLoadFinishTimestamp(): \DateTimeImmutable |
||
1684 | |||
1685 | /** |
||
1686 | * @param \DateTimeImmutable $UnitsLoadFinishTimestamp |
||
1687 | * @return Systemd |
||
1688 | */ |
||
1689 | public function setUnitsLoadFinishTimestamp(\DateTimeImmutable $UnitsLoadFinishTimestamp): Systemd |
||
1694 | |||
1695 | /** |
||
1696 | * @return int |
||
1697 | */ |
||
1698 | public function getUnitsLoadFinishTimestampMonotonic(): int |
||
1702 | |||
1703 | /** |
||
1704 | * @param int $UnitsLoadFinishTimestampMonotonic |
||
1705 | * @return Systemd |
||
1706 | */ |
||
1707 | public function setUnitsLoadFinishTimestampMonotonic(int $UnitsLoadFinishTimestampMonotonic): Systemd |
||
1712 | |||
1713 | /** |
||
1714 | * @return \DateTimeImmutable |
||
1715 | */ |
||
1716 | public function getUnitsLoadStartTimestamp(): \DateTimeImmutable |
||
1720 | |||
1721 | /** |
||
1722 | * @param \DateTimeImmutable $UnitsLoadStartTimestamp |
||
1723 | * @return Systemd |
||
1724 | */ |
||
1725 | public function setUnitsLoadStartTimestamp(\DateTimeImmutable $UnitsLoadStartTimestamp): Systemd |
||
1730 | |||
1731 | /** |
||
1732 | * @return int |
||
1733 | */ |
||
1734 | public function getUnitsLoadStartTimestampMonotonic(): int |
||
1738 | |||
1739 | /** |
||
1740 | * @param int $UnitsLoadStartTimestampMonotonic |
||
1741 | * @return Systemd |
||
1742 | */ |
||
1743 | public function setUnitsLoadStartTimestampMonotonic(int $UnitsLoadStartTimestampMonotonic): Systemd |
||
1748 | |||
1749 | /** |
||
1750 | * @return \DateTimeImmutable |
||
1751 | */ |
||
1752 | public function getUserspaceTimestamp(): \DateTimeImmutable |
||
1756 | |||
1757 | /** |
||
1758 | * @param \DateTimeImmutable $UserspaceTimestamp |
||
1759 | * @return Systemd |
||
1760 | */ |
||
1761 | public function setUserspaceTimestamp(\DateTimeImmutable $UserspaceTimestamp): Systemd |
||
1766 | |||
1767 | /** |
||
1768 | * @return int |
||
1769 | */ |
||
1770 | public function getUserspaceTimestampMonotonic(): int |
||
1774 | |||
1775 | /** |
||
1776 | * @param int $UserspaceTimestampMonotonic |
||
1777 | * @return Systemd |
||
1778 | */ |
||
1779 | public function setUserspaceTimestampMonotonic(int $UserspaceTimestampMonotonic): Systemd |
||
1784 | |||
1785 | /** |
||
1786 | * @return int |
||
1787 | */ |
||
1788 | public function getVersion(): int |
||
1792 | |||
1793 | /** |
||
1794 | * @param int $Version |
||
1795 | * @return Systemd |
||
1796 | */ |
||
1797 | public function setVersion(int $Version): Systemd |
||
1802 | |||
1803 | /** |
||
1804 | * @return string |
||
1805 | */ |
||
1806 | public function getVirtualization(): string |
||
1810 | |||
1811 | /** |
||
1812 | * @param string $Virtualization |
||
1813 | * @return Systemd |
||
1814 | */ |
||
1815 | public function setVirtualization(string $Virtualization): Systemd |
||
1820 | |||
1821 | public function getId() |
||
1825 | |||
1826 | public function jsonSerialize() |
||
1830 | } |
||
1831 |