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 | private $Architecture; |
||
9 | |||
10 | /** @var boolean */ |
||
11 | private $ConfirmSpawn; |
||
12 | |||
13 | /** @var boolean */ |
||
14 | private $DefaultBlockIOAccounting; |
||
15 | |||
16 | /** @var boolean */ |
||
17 | private $DefaultCPUAccounting; |
||
18 | |||
19 | private $DefaultLimitAS; |
||
20 | |||
21 | private $DefaultLimitASSoft; |
||
22 | |||
23 | private $DefaultLimitCORE; |
||
24 | |||
25 | private $DefaultLimitCORESoft; |
||
26 | |||
27 | private $DefaultLimitCPU; |
||
28 | |||
29 | private $DefaultLimitCPUSoft; |
||
30 | |||
31 | private $DefaultLimitDATA; |
||
32 | |||
33 | private $DefaultLimitDATASoft; |
||
34 | |||
35 | private $DefaultLimitFSIZE; |
||
36 | |||
37 | private $DefaultLimitFSIZESoft; |
||
38 | |||
39 | private $DefaultLimitLOCKS; |
||
40 | |||
41 | private $DefaultLimitLOCKSSoft; |
||
42 | |||
43 | private $DefaultLimitMEMLOCK; |
||
44 | |||
45 | private $DefaultLimitMEMLOCKSoft; |
||
46 | |||
47 | private $DefaultLimitMSGQUEUE; |
||
48 | |||
49 | private $DefaultLimitMSGQUEUESoft; |
||
50 | |||
51 | private $DefaultLimitNICE; |
||
52 | |||
53 | private $DefaultLimitNICESoft; |
||
54 | |||
55 | private $DefaultLimitNOFILE; |
||
56 | |||
57 | private $DefaultLimitNOFILESoft; |
||
58 | |||
59 | private $DefaultLimitNPROC; |
||
60 | |||
61 | private $DefaultLimitNPROCSoft; |
||
62 | |||
63 | private $DefaultLimitRSS; |
||
64 | |||
65 | private $DefaultLimitRSSSoft; |
||
66 | |||
67 | private $DefaultLimitRTPRIO; |
||
68 | |||
69 | private $DefaultLimitRTPRIOSoft; |
||
70 | |||
71 | private $DefaultLimitRTTIME; |
||
72 | |||
73 | private $DefaultLimitRTTIMESoft; |
||
74 | |||
75 | private $DefaultLimitSIGPENDING; |
||
76 | |||
77 | private $DefaultLimitSIGPENDINGSoft; |
||
78 | |||
79 | private $DefaultLimitSTACK; |
||
80 | |||
81 | private $DefaultLimitSTACKSoft; |
||
82 | |||
83 | /** @var boolean */ |
||
84 | private $DefaultMemoryAccounting; |
||
85 | |||
86 | /** @var string */ |
||
87 | private $DefaultRestartUSec; |
||
88 | |||
89 | /** @var string */ |
||
90 | private $DefaultStandardError; |
||
91 | |||
92 | /** @var string */ |
||
93 | private $DefaultStandardOutput; |
||
94 | |||
95 | /** @var integer */ |
||
96 | private $DefaultStartLimitBurst; |
||
97 | |||
98 | /** @var integer */ |
||
99 | private $DefaultStartLimitIntervalSec; |
||
100 | |||
101 | /** @var boolean */ |
||
102 | private $DefaultTasksAccounting; |
||
103 | |||
104 | /** @var integer */ |
||
105 | private $DefaultTasksMax; |
||
106 | |||
107 | /** @var string */ |
||
108 | private $DefaultTimeoutStartUSec; |
||
109 | |||
110 | /** @var string */ |
||
111 | private $DefaultTimeoutStopUSec; |
||
112 | |||
113 | /** @var string */ |
||
114 | private $DefaultTimerAccuracyUSec; |
||
115 | |||
116 | /** @var array */ |
||
117 | private $Environment = []; |
||
118 | |||
119 | /** @var array */ |
||
120 | private $Features = []; |
||
121 | |||
122 | /** @var \DateTimeImmutable */ |
||
123 | private $FinishTimestamp; |
||
124 | |||
125 | /** @var integer */ |
||
126 | private $FinishTimestampMonotonic; |
||
127 | |||
128 | /** @var integer */ |
||
129 | private $FirmwareTimestampMonotonic; |
||
130 | |||
131 | /** @var \DateTimeImmutable */ |
||
132 | private $GeneratorsFinishTimestamp; |
||
133 | |||
134 | /** @var integer */ |
||
135 | private $GeneratorsFinishTimestampMonotonic; |
||
136 | |||
137 | /** @var \DateTimeImmutable */ |
||
138 | private $GeneratorsStartTimestamp; |
||
139 | |||
140 | /** @var integer */ |
||
141 | private $GeneratorsStartTimestampMonotonic; |
||
142 | |||
143 | /** @var integer */ |
||
144 | private $InitRDTimestampMonotonic; |
||
145 | |||
146 | /** @var \DateTimeImmutable */ |
||
147 | private $KernelTimestamp; |
||
148 | |||
149 | /** @var integer */ |
||
150 | private $KernelTimestampMonotonic; |
||
151 | |||
152 | /** @var integer */ |
||
153 | private $LoaderTimestampMonotonic; |
||
154 | |||
155 | /** @var string */ |
||
156 | private $LogLevel; |
||
157 | |||
158 | /** @var string */ |
||
159 | private $LogTarget; |
||
160 | |||
161 | /** @var integer */ |
||
162 | private $NFailedJobs; |
||
163 | |||
164 | /** @var integer */ |
||
165 | private $NFailedUnits; |
||
166 | |||
167 | /** @var integer */ |
||
168 | private $NInstalledJobs; |
||
169 | |||
170 | /** @var integer */ |
||
171 | private $NJobs; |
||
172 | |||
173 | /** @var integer */ |
||
174 | private $NNames; |
||
175 | |||
176 | /** @var integer */ |
||
177 | private $Progress; |
||
178 | |||
179 | /** @var integer */ |
||
180 | private $RuntimeWatchdogUSec; |
||
181 | |||
182 | /** @var \DateTimeImmutable */ |
||
183 | private $SecurityFinishTimestamp; |
||
184 | |||
185 | /** @var integer */ |
||
186 | private $SecurityFinishTimestampMonotonic; |
||
187 | |||
188 | /** @var \DateTimeImmutable */ |
||
189 | private $SecurityStartTimestamp; |
||
190 | |||
191 | /** @var integer */ |
||
192 | private $SecurityStartTimestampMonotonic; |
||
193 | |||
194 | /** @var boolean */ |
||
195 | private $ShowStatus; |
||
196 | |||
197 | /** @var string */ |
||
198 | private $ShutdownWatchdogUSec; |
||
199 | |||
200 | /** @var string */ |
||
201 | private $SystemState; |
||
202 | |||
203 | /** @var integer */ |
||
204 | private $TimerSlackNSec; |
||
205 | |||
206 | /** @var array */ |
||
207 | private $UnitPath = []; |
||
208 | |||
209 | /** @var \DateTimeImmutable */ |
||
210 | private $UnitsLoadFinishTimestamp; |
||
211 | |||
212 | /** @var integer */ |
||
213 | private $UnitsLoadFinishTimestampMonotonic; |
||
214 | |||
215 | /** @var \DateTimeImmutable */ |
||
216 | private $UnitsLoadStartTimestamp; |
||
217 | |||
218 | /** @var integer */ |
||
219 | private $UnitsLoadStartTimestampMonotonic; |
||
220 | |||
221 | /** @var \DateTimeImmutable */ |
||
222 | private $UserspaceTimestamp; |
||
223 | |||
224 | /** @var integer */ |
||
225 | private $UserspaceTimestampMonotonic; |
||
226 | |||
227 | /** @var integer */ |
||
228 | private $Version; |
||
229 | |||
230 | /** @var string */ |
||
231 | private $Virtualization; |
||
232 | |||
233 | /** |
||
234 | * @return string |
||
235 | */ |
||
236 | public function getArchitecture(): string |
||
240 | |||
241 | /** |
||
242 | * @param string $Architecture |
||
243 | * @return Systemd |
||
244 | */ |
||
245 | public function setArchitecture(string $Architecture): Systemd |
||
250 | |||
251 | /** |
||
252 | * @return bool |
||
253 | */ |
||
254 | public function isConfirmSpawn(): bool |
||
258 | |||
259 | /** |
||
260 | * @param bool $ConfirmSpawn |
||
261 | * @return Systemd |
||
262 | */ |
||
263 | public function setConfirmSpawn(bool $ConfirmSpawn): Systemd |
||
268 | |||
269 | /** |
||
270 | * @return bool |
||
271 | */ |
||
272 | public function isDefaultBlockIOAccounting(): bool |
||
276 | |||
277 | /** |
||
278 | * @param bool $DefaultBlockIOAccounting |
||
279 | * @return Systemd |
||
280 | */ |
||
281 | public function setDefaultBlockIOAccounting(bool $DefaultBlockIOAccounting): Systemd |
||
286 | |||
287 | /** |
||
288 | * @return bool |
||
289 | */ |
||
290 | public function isDefaultCPUAccounting(): bool |
||
294 | |||
295 | /** |
||
296 | * @param bool $DefaultCPUAccounting |
||
297 | * @return Systemd |
||
298 | */ |
||
299 | public function setDefaultCPUAccounting(bool $DefaultCPUAccounting): Systemd |
||
304 | |||
305 | /** |
||
306 | * @return mixed |
||
307 | */ |
||
308 | public function getDefaultLimitAS() |
||
312 | |||
313 | /** |
||
314 | * @param mixed $DefaultLimitAS |
||
315 | * @return Systemd |
||
316 | */ |
||
317 | public function setDefaultLimitAS($DefaultLimitAS) |
||
322 | |||
323 | /** |
||
324 | * @return mixed |
||
325 | */ |
||
326 | public function getDefaultLimitASSoft() |
||
330 | |||
331 | /** |
||
332 | * @param mixed $DefaultLimitASSoft |
||
333 | * @return Systemd |
||
334 | */ |
||
335 | public function setDefaultLimitASSoft($DefaultLimitASSoft) |
||
340 | |||
341 | /** |
||
342 | * @return mixed |
||
343 | */ |
||
344 | public function getDefaultLimitCORE() |
||
348 | |||
349 | /** |
||
350 | * @param mixed $DefaultLimitCORE |
||
351 | * @return Systemd |
||
352 | */ |
||
353 | public function setDefaultLimitCORE($DefaultLimitCORE) |
||
358 | |||
359 | /** |
||
360 | * @return mixed |
||
361 | */ |
||
362 | public function getDefaultLimitCORESoft() |
||
366 | |||
367 | /** |
||
368 | * @param mixed $DefaultLimitCORESoft |
||
369 | * @return Systemd |
||
370 | */ |
||
371 | public function setDefaultLimitCORESoft($DefaultLimitCORESoft) |
||
376 | |||
377 | /** |
||
378 | * @return mixed |
||
379 | */ |
||
380 | public function getDefaultLimitCPU() |
||
384 | |||
385 | /** |
||
386 | * @param mixed $DefaultLimitCPU |
||
387 | * @return Systemd |
||
388 | */ |
||
389 | public function setDefaultLimitCPU($DefaultLimitCPU) |
||
394 | |||
395 | /** |
||
396 | * @return mixed |
||
397 | */ |
||
398 | public function getDefaultLimitCPUSoft() |
||
402 | |||
403 | /** |
||
404 | * @param mixed $DefaultLimitCPUSoft |
||
405 | * @return Systemd |
||
406 | */ |
||
407 | public function setDefaultLimitCPUSoft($DefaultLimitCPUSoft) |
||
412 | |||
413 | /** |
||
414 | * @return mixed |
||
415 | */ |
||
416 | public function getDefaultLimitDATA() |
||
420 | |||
421 | /** |
||
422 | * @param mixed $DefaultLimitDATA |
||
423 | * @return Systemd |
||
424 | */ |
||
425 | public function setDefaultLimitDATA($DefaultLimitDATA) |
||
430 | |||
431 | /** |
||
432 | * @return mixed |
||
433 | */ |
||
434 | public function getDefaultLimitDATASoft() |
||
438 | |||
439 | /** |
||
440 | * @param mixed $DefaultLimitDATASoft |
||
441 | * @return Systemd |
||
442 | */ |
||
443 | public function setDefaultLimitDATASoft($DefaultLimitDATASoft) |
||
448 | |||
449 | /** |
||
450 | * @return mixed |
||
451 | */ |
||
452 | public function getDefaultLimitFSIZE() |
||
456 | |||
457 | /** |
||
458 | * @param mixed $DefaultLimitFSIZE |
||
459 | * @return Systemd |
||
460 | */ |
||
461 | public function setDefaultLimitFSIZE($DefaultLimitFSIZE) |
||
466 | |||
467 | /** |
||
468 | * @return mixed |
||
469 | */ |
||
470 | public function getDefaultLimitFSIZESoft() |
||
474 | |||
475 | /** |
||
476 | * @param mixed $DefaultLimitFSIZESoft |
||
477 | * @return Systemd |
||
478 | */ |
||
479 | public function setDefaultLimitFSIZESoft($DefaultLimitFSIZESoft) |
||
484 | |||
485 | /** |
||
486 | * @return mixed |
||
487 | */ |
||
488 | public function getDefaultLimitLOCKS() |
||
492 | |||
493 | /** |
||
494 | * @param mixed $DefaultLimitLOCKS |
||
495 | * @return Systemd |
||
496 | */ |
||
497 | public function setDefaultLimitLOCKS($DefaultLimitLOCKS) |
||
502 | |||
503 | /** |
||
504 | * @return mixed |
||
505 | */ |
||
506 | public function getDefaultLimitLOCKSSoft() |
||
510 | |||
511 | /** |
||
512 | * @param mixed $DefaultLimitLOCKSSoft |
||
513 | * @return Systemd |
||
514 | */ |
||
515 | public function setDefaultLimitLOCKSSoft($DefaultLimitLOCKSSoft) |
||
520 | |||
521 | /** |
||
522 | * @return mixed |
||
523 | */ |
||
524 | public function getDefaultLimitMEMLOCK() |
||
528 | |||
529 | /** |
||
530 | * @param mixed $DefaultLimitMEMLOCK |
||
531 | * @return Systemd |
||
532 | */ |
||
533 | public function setDefaultLimitMEMLOCK($DefaultLimitMEMLOCK) |
||
538 | |||
539 | /** |
||
540 | * @return mixed |
||
541 | */ |
||
542 | public function getDefaultLimitMEMLOCKSoft() |
||
546 | |||
547 | /** |
||
548 | * @param mixed $DefaultLimitMEMLOCKSoft |
||
549 | * @return Systemd |
||
550 | */ |
||
551 | public function setDefaultLimitMEMLOCKSoft($DefaultLimitMEMLOCKSoft) |
||
556 | |||
557 | /** |
||
558 | * @return mixed |
||
559 | */ |
||
560 | public function getDefaultLimitMSGQUEUE() |
||
564 | |||
565 | /** |
||
566 | * @param mixed $DefaultLimitMSGQUEUE |
||
567 | * @return Systemd |
||
568 | */ |
||
569 | public function setDefaultLimitMSGQUEUE($DefaultLimitMSGQUEUE) |
||
574 | |||
575 | /** |
||
576 | * @return mixed |
||
577 | */ |
||
578 | public function getDefaultLimitMSGQUEUESoft() |
||
582 | |||
583 | /** |
||
584 | * @param mixed $DefaultLimitMSGQUEUESoft |
||
585 | * @return Systemd |
||
586 | */ |
||
587 | public function setDefaultLimitMSGQUEUESoft($DefaultLimitMSGQUEUESoft) |
||
592 | |||
593 | /** |
||
594 | * @return mixed |
||
595 | */ |
||
596 | public function getDefaultLimitNICE() |
||
600 | |||
601 | /** |
||
602 | * @param mixed $DefaultLimitNICE |
||
603 | * @return Systemd |
||
604 | */ |
||
605 | public function setDefaultLimitNICE($DefaultLimitNICE) |
||
610 | |||
611 | /** |
||
612 | * @return mixed |
||
613 | */ |
||
614 | public function getDefaultLimitNICESoft() |
||
618 | |||
619 | /** |
||
620 | * @param mixed $DefaultLimitNICESoft |
||
621 | * @return Systemd |
||
622 | */ |
||
623 | public function setDefaultLimitNICESoft($DefaultLimitNICESoft) |
||
628 | |||
629 | /** |
||
630 | * @return mixed |
||
631 | */ |
||
632 | public function getDefaultLimitNOFILE() |
||
636 | |||
637 | /** |
||
638 | * @param mixed $DefaultLimitNOFILE |
||
639 | * @return Systemd |
||
640 | */ |
||
641 | public function setDefaultLimitNOFILE($DefaultLimitNOFILE) |
||
646 | |||
647 | /** |
||
648 | * @return mixed |
||
649 | */ |
||
650 | public function getDefaultLimitNOFILESoft() |
||
654 | |||
655 | /** |
||
656 | * @param mixed $DefaultLimitNOFILESoft |
||
657 | * @return Systemd |
||
658 | */ |
||
659 | public function setDefaultLimitNOFILESoft($DefaultLimitNOFILESoft) |
||
664 | |||
665 | /** |
||
666 | * @return mixed |
||
667 | */ |
||
668 | public function getDefaultLimitNPROC() |
||
672 | |||
673 | /** |
||
674 | * @param mixed $DefaultLimitNPROC |
||
675 | * @return Systemd |
||
676 | */ |
||
677 | public function setDefaultLimitNPROC($DefaultLimitNPROC) |
||
682 | |||
683 | /** |
||
684 | * @return mixed |
||
685 | */ |
||
686 | public function getDefaultLimitNPROCSoft() |
||
690 | |||
691 | /** |
||
692 | * @param mixed $DefaultLimitNPROCSoft |
||
693 | * @return Systemd |
||
694 | */ |
||
695 | public function setDefaultLimitNPROCSoft($DefaultLimitNPROCSoft) |
||
700 | |||
701 | /** |
||
702 | * @return mixed |
||
703 | */ |
||
704 | public function getDefaultLimitRSS() |
||
708 | |||
709 | /** |
||
710 | * @param mixed $DefaultLimitRSS |
||
711 | * @return Systemd |
||
712 | */ |
||
713 | public function setDefaultLimitRSS($DefaultLimitRSS) |
||
718 | |||
719 | /** |
||
720 | * @return mixed |
||
721 | */ |
||
722 | public function getDefaultLimitRSSSoft() |
||
726 | |||
727 | /** |
||
728 | * @param mixed $DefaultLimitRSSSoft |
||
729 | * @return Systemd |
||
730 | */ |
||
731 | public function setDefaultLimitRSSSoft($DefaultLimitRSSSoft) |
||
736 | |||
737 | /** |
||
738 | * @return mixed |
||
739 | */ |
||
740 | public function getDefaultLimitRTPRIO() |
||
744 | |||
745 | /** |
||
746 | * @param mixed $DefaultLimitRTPRIO |
||
747 | * @return Systemd |
||
748 | */ |
||
749 | public function setDefaultLimitRTPRIO($DefaultLimitRTPRIO) |
||
754 | |||
755 | /** |
||
756 | * @return mixed |
||
757 | */ |
||
758 | public function getDefaultLimitRTPRIOSoft() |
||
762 | |||
763 | /** |
||
764 | * @param mixed $DefaultLimitRTPRIOSoft |
||
765 | * @return Systemd |
||
766 | */ |
||
767 | public function setDefaultLimitRTPRIOSoft($DefaultLimitRTPRIOSoft) |
||
772 | |||
773 | /** |
||
774 | * @return mixed |
||
775 | */ |
||
776 | public function getDefaultLimitRTTIME() |
||
780 | |||
781 | /** |
||
782 | * @param mixed $DefaultLimitRTTIME |
||
783 | * @return Systemd |
||
784 | */ |
||
785 | public function setDefaultLimitRTTIME($DefaultLimitRTTIME) |
||
790 | |||
791 | /** |
||
792 | * @return mixed |
||
793 | */ |
||
794 | public function getDefaultLimitRTTIMESoft() |
||
798 | |||
799 | /** |
||
800 | * @param mixed $DefaultLimitRTTIMESoft |
||
801 | * @return Systemd |
||
802 | */ |
||
803 | public function setDefaultLimitRTTIMESoft($DefaultLimitRTTIMESoft) |
||
808 | |||
809 | /** |
||
810 | * @return mixed |
||
811 | */ |
||
812 | public function getDefaultLimitSIGPENDING() |
||
816 | |||
817 | /** |
||
818 | * @param mixed $DefaultLimitSIGPENDING |
||
819 | * @return Systemd |
||
820 | */ |
||
821 | public function setDefaultLimitSIGPENDING($DefaultLimitSIGPENDING) |
||
826 | |||
827 | /** |
||
828 | * @return mixed |
||
829 | */ |
||
830 | public function getDefaultLimitSIGPENDINGSoft() |
||
834 | |||
835 | /** |
||
836 | * @param mixed $DefaultLimitSIGPENDINGSoft |
||
837 | * @return Systemd |
||
838 | */ |
||
839 | public function setDefaultLimitSIGPENDINGSoft($DefaultLimitSIGPENDINGSoft) |
||
844 | |||
845 | /** |
||
846 | * @return mixed |
||
847 | */ |
||
848 | public function getDefaultLimitSTACK() |
||
852 | |||
853 | /** |
||
854 | * @param mixed $DefaultLimitSTACK |
||
855 | * @return Systemd |
||
856 | */ |
||
857 | public function setDefaultLimitSTACK($DefaultLimitSTACK) |
||
862 | |||
863 | /** |
||
864 | * @return mixed |
||
865 | */ |
||
866 | public function getDefaultLimitSTACKSoft() |
||
870 | |||
871 | /** |
||
872 | * @param mixed $DefaultLimitSTACKSoft |
||
873 | * @return Systemd |
||
874 | */ |
||
875 | public function setDefaultLimitSTACKSoft($DefaultLimitSTACKSoft) |
||
880 | |||
881 | /** |
||
882 | * @return bool |
||
883 | */ |
||
884 | public function isDefaultMemoryAccounting(): bool |
||
888 | |||
889 | /** |
||
890 | * @param bool $DefaultMemoryAccounting |
||
891 | * @return Systemd |
||
892 | */ |
||
893 | public function setDefaultMemoryAccounting(bool $DefaultMemoryAccounting): Systemd |
||
898 | |||
899 | /** |
||
900 | * @return string |
||
901 | */ |
||
902 | public function getDefaultRestartUSec(): string |
||
906 | |||
907 | /** |
||
908 | * @param string $DefaultRestartUSec |
||
909 | * @return Systemd |
||
910 | */ |
||
911 | public function setDefaultRestartUSec(string $DefaultRestartUSec): Systemd |
||
916 | |||
917 | /** |
||
918 | * @return string |
||
919 | */ |
||
920 | public function getDefaultStandardError(): string |
||
924 | |||
925 | /** |
||
926 | * @param string $DefaultStandardError |
||
927 | * @return Systemd |
||
928 | */ |
||
929 | public function setDefaultStandardError(string $DefaultStandardError): Systemd |
||
934 | |||
935 | /** |
||
936 | * @return string |
||
937 | */ |
||
938 | public function getDefaultStandardOutput(): string |
||
942 | |||
943 | /** |
||
944 | * @param string $DefaultStandardOutput |
||
945 | * @return Systemd |
||
946 | */ |
||
947 | public function setDefaultStandardOutput(string $DefaultStandardOutput): Systemd |
||
952 | |||
953 | /** |
||
954 | * @return int |
||
955 | */ |
||
956 | public function getDefaultStartLimitBurst(): int |
||
960 | |||
961 | /** |
||
962 | * @param int $DefaultStartLimitBurst |
||
963 | * @return Systemd |
||
964 | */ |
||
965 | public function setDefaultStartLimitBurst(int $DefaultStartLimitBurst): Systemd |
||
970 | |||
971 | /** |
||
972 | * @return int |
||
973 | */ |
||
974 | public function getDefaultStartLimitIntervalSec(): int |
||
978 | |||
979 | /** |
||
980 | * @param int $DefaultStartLimitIntervalSec |
||
981 | * @return Systemd |
||
982 | */ |
||
983 | public function setDefaultStartLimitIntervalSec(int $DefaultStartLimitIntervalSec): Systemd |
||
988 | |||
989 | /** |
||
990 | * @return bool |
||
991 | */ |
||
992 | public function isDefaultTasksAccounting(): bool |
||
996 | |||
997 | /** |
||
998 | * @param bool $DefaultTasksAccounting |
||
999 | * @return Systemd |
||
1000 | */ |
||
1001 | public function setDefaultTasksAccounting(bool $DefaultTasksAccounting): Systemd |
||
1006 | |||
1007 | /** |
||
1008 | * @return int |
||
1009 | */ |
||
1010 | public function getDefaultTasksMax(): int |
||
1014 | |||
1015 | /** |
||
1016 | * @param int $DefaultTasksMax |
||
1017 | * @return Systemd |
||
1018 | */ |
||
1019 | public function setDefaultTasksMax(int $DefaultTasksMax): Systemd |
||
1024 | |||
1025 | /** |
||
1026 | * @return string |
||
1027 | */ |
||
1028 | public function getDefaultTimeoutStartUSec(): string |
||
1032 | |||
1033 | /** |
||
1034 | * @param string $DefaultTimeoutStartUSec |
||
1035 | * @return Systemd |
||
1036 | */ |
||
1037 | public function setDefaultTimeoutStartUSec(string $DefaultTimeoutStartUSec): Systemd |
||
1042 | |||
1043 | /** |
||
1044 | * @return string |
||
1045 | */ |
||
1046 | public function getDefaultTimeoutStopUSec(): string |
||
1050 | |||
1051 | /** |
||
1052 | * @param string $DefaultTimeoutStopUSec |
||
1053 | * @return Systemd |
||
1054 | */ |
||
1055 | public function setDefaultTimeoutStopUSec(string $DefaultTimeoutStopUSec): Systemd |
||
1060 | |||
1061 | /** |
||
1062 | * @return string |
||
1063 | */ |
||
1064 | public function getDefaultTimerAccuracyUSec(): string |
||
1068 | |||
1069 | /** |
||
1070 | * @param string $DefaultTimerAccuracyUSec |
||
1071 | * @return Systemd |
||
1072 | */ |
||
1073 | public function setDefaultTimerAccuracyUSec(string $DefaultTimerAccuracyUSec): Systemd |
||
1078 | |||
1079 | /** |
||
1080 | * @return array |
||
1081 | */ |
||
1082 | public function getEnvironment(): array |
||
1086 | |||
1087 | /** |
||
1088 | * @param array $Environment |
||
1089 | * @return Systemd |
||
1090 | */ |
||
1091 | public function setEnvironment(array $Environment): Systemd |
||
1096 | |||
1097 | /** |
||
1098 | * @return array |
||
1099 | */ |
||
1100 | public function getFeatures(): array |
||
1104 | |||
1105 | /** |
||
1106 | * @param array $Features |
||
1107 | * @return Systemd |
||
1108 | */ |
||
1109 | public function setFeatures(array $Features): Systemd |
||
1114 | |||
1115 | /** |
||
1116 | * @return \DateTimeImmutable |
||
1117 | */ |
||
1118 | public function getFinishTimestamp(): \DateTimeImmutable |
||
1122 | |||
1123 | /** |
||
1124 | * @param \DateTimeImmutable $FinishTimestamp |
||
1125 | * @return Systemd |
||
1126 | */ |
||
1127 | public function setFinishTimestamp(\DateTimeImmutable $FinishTimestamp): Systemd |
||
1132 | |||
1133 | /** |
||
1134 | * @return int |
||
1135 | */ |
||
1136 | public function getFinishTimestampMonotonic(): int |
||
1140 | |||
1141 | /** |
||
1142 | * @param int $FinishTimestampMonotonic |
||
1143 | * @return Systemd |
||
1144 | */ |
||
1145 | public function setFinishTimestampMonotonic(int $FinishTimestampMonotonic): Systemd |
||
1150 | |||
1151 | /** |
||
1152 | * @return int |
||
1153 | */ |
||
1154 | public function getFirmwareTimestampMonotonic(): int |
||
1158 | |||
1159 | /** |
||
1160 | * @param int $FirmwareTimestampMonotonic |
||
1161 | * @return Systemd |
||
1162 | */ |
||
1163 | public function setFirmwareTimestampMonotonic(int $FirmwareTimestampMonotonic): Systemd |
||
1168 | |||
1169 | /** |
||
1170 | * @return \DateTimeImmutable |
||
1171 | */ |
||
1172 | public function getGeneratorsFinishTimestamp(): \DateTimeImmutable |
||
1176 | |||
1177 | /** |
||
1178 | * @param \DateTimeImmutable $GeneratorsFinishTimestamp |
||
1179 | * @return Systemd |
||
1180 | */ |
||
1181 | public function setGeneratorsFinishTimestamp(\DateTimeImmutable $GeneratorsFinishTimestamp): Systemd |
||
1186 | |||
1187 | /** |
||
1188 | * @return int |
||
1189 | */ |
||
1190 | public function getGeneratorsFinishTimestampMonotonic(): int |
||
1194 | |||
1195 | /** |
||
1196 | * @param int $GeneratorsFinishTimestampMonotonic |
||
1197 | * @return Systemd |
||
1198 | */ |
||
1199 | public function setGeneratorsFinishTimestampMonotonic(int $GeneratorsFinishTimestampMonotonic): Systemd |
||
1204 | |||
1205 | /** |
||
1206 | * @return \DateTimeImmutable |
||
1207 | */ |
||
1208 | public function getGeneratorsStartTimestamp(): \DateTimeImmutable |
||
1212 | |||
1213 | /** |
||
1214 | * @param \DateTimeImmutable $GeneratorsStartTimestamp |
||
1215 | * @return Systemd |
||
1216 | */ |
||
1217 | public function setGeneratorsStartTimestamp(\DateTimeImmutable $GeneratorsStartTimestamp): Systemd |
||
1222 | |||
1223 | /** |
||
1224 | * @return int |
||
1225 | */ |
||
1226 | public function getGeneratorsStartTimestampMonotonic(): int |
||
1230 | |||
1231 | /** |
||
1232 | * @param int $GeneratorsStartTimestampMonotonic |
||
1233 | * @return Systemd |
||
1234 | */ |
||
1235 | public function setGeneratorsStartTimestampMonotonic(int $GeneratorsStartTimestampMonotonic): Systemd |
||
1240 | |||
1241 | /** |
||
1242 | * @return int |
||
1243 | */ |
||
1244 | public function getInitRDTimestampMonotonic(): int |
||
1248 | |||
1249 | /** |
||
1250 | * @param int $InitRDTimestampMonotonic |
||
1251 | * @return Systemd |
||
1252 | */ |
||
1253 | public function setInitRDTimestampMonotonic(int $InitRDTimestampMonotonic): Systemd |
||
1258 | |||
1259 | /** |
||
1260 | * @return \DateTimeImmutable |
||
1261 | */ |
||
1262 | public function getKernelTimestamp(): \DateTimeImmutable |
||
1266 | |||
1267 | /** |
||
1268 | * @param \DateTimeImmutable $KernelTimestamp |
||
1269 | * @return Systemd |
||
1270 | */ |
||
1271 | public function setKernelTimestamp(\DateTimeImmutable $KernelTimestamp): Systemd |
||
1276 | |||
1277 | /** |
||
1278 | * @return int |
||
1279 | */ |
||
1280 | public function getKernelTimestampMonotonic(): int |
||
1284 | |||
1285 | /** |
||
1286 | * @param int $KernelTimestampMonotonic |
||
1287 | * @return Systemd |
||
1288 | */ |
||
1289 | public function setKernelTimestampMonotonic(int $KernelTimestampMonotonic): Systemd |
||
1294 | |||
1295 | /** |
||
1296 | * @return int |
||
1297 | */ |
||
1298 | public function getLoaderTimestampMonotonic(): int |
||
1302 | |||
1303 | /** |
||
1304 | * @param int $LoaderTimestampMonotonic |
||
1305 | * @return Systemd |
||
1306 | */ |
||
1307 | public function setLoaderTimestampMonotonic(int $LoaderTimestampMonotonic): Systemd |
||
1312 | |||
1313 | /** |
||
1314 | * @return string |
||
1315 | */ |
||
1316 | public function getLogLevel(): string |
||
1320 | |||
1321 | /** |
||
1322 | * @param string $LogLevel |
||
1323 | * @return Systemd |
||
1324 | */ |
||
1325 | public function setLogLevel(string $LogLevel): Systemd |
||
1330 | |||
1331 | /** |
||
1332 | * @return string |
||
1333 | */ |
||
1334 | public function getLogTarget(): string |
||
1338 | |||
1339 | /** |
||
1340 | * @param string $LogTarget |
||
1341 | * @return Systemd |
||
1342 | */ |
||
1343 | public function setLogTarget(string $LogTarget): Systemd |
||
1348 | |||
1349 | /** |
||
1350 | * @return int |
||
1351 | */ |
||
1352 | public function getNFailedJobs(): int |
||
1356 | |||
1357 | /** |
||
1358 | * @param int $NFailedJobs |
||
1359 | * @return Systemd |
||
1360 | */ |
||
1361 | public function setNFailedJobs(int $NFailedJobs): Systemd |
||
1366 | |||
1367 | /** |
||
1368 | * @return int |
||
1369 | */ |
||
1370 | public function getNFailedUnits(): int |
||
1374 | |||
1375 | /** |
||
1376 | * @param int $NFailedUnits |
||
1377 | * @return Systemd |
||
1378 | */ |
||
1379 | public function setNFailedUnits(int $NFailedUnits): Systemd |
||
1384 | |||
1385 | /** |
||
1386 | * @return int |
||
1387 | */ |
||
1388 | public function getNInstalledJobs(): int |
||
1392 | |||
1393 | /** |
||
1394 | * @param int $NInstalledJobs |
||
1395 | * @return Systemd |
||
1396 | */ |
||
1397 | public function setNInstalledJobs(int $NInstalledJobs): Systemd |
||
1402 | |||
1403 | /** |
||
1404 | * @return int |
||
1405 | */ |
||
1406 | public function getNJobs(): int |
||
1410 | |||
1411 | /** |
||
1412 | * @param int $NJobs |
||
1413 | * @return Systemd |
||
1414 | */ |
||
1415 | public function setNJobs(int $NJobs): Systemd |
||
1420 | |||
1421 | /** |
||
1422 | * @return int |
||
1423 | */ |
||
1424 | public function getNNames(): int |
||
1428 | |||
1429 | /** |
||
1430 | * @param int $NNames |
||
1431 | * @return Systemd |
||
1432 | */ |
||
1433 | public function setNNames(int $NNames): Systemd |
||
1438 | |||
1439 | /** |
||
1440 | * @return int |
||
1441 | */ |
||
1442 | public function getProgress(): int |
||
1446 | |||
1447 | /** |
||
1448 | * @param int $Progress |
||
1449 | * @return Systemd |
||
1450 | */ |
||
1451 | public function setProgress(int $Progress): Systemd |
||
1456 | |||
1457 | /** |
||
1458 | * @return int |
||
1459 | */ |
||
1460 | public function getRuntimeWatchdogUSec(): int |
||
1464 | |||
1465 | /** |
||
1466 | * @param int $RuntimeWatchdogUSec |
||
1467 | * @return Systemd |
||
1468 | */ |
||
1469 | public function setRuntimeWatchdogUSec(int $RuntimeWatchdogUSec): Systemd |
||
1474 | |||
1475 | /** |
||
1476 | * @return \DateTimeImmutable |
||
1477 | */ |
||
1478 | public function getSecurityFinishTimestamp(): \DateTimeImmutable |
||
1482 | |||
1483 | /** |
||
1484 | * @param \DateTimeImmutable $SecurityFinishTimestamp |
||
1485 | * @return Systemd |
||
1486 | */ |
||
1487 | public function setSecurityFinishTimestamp(\DateTimeImmutable $SecurityFinishTimestamp): Systemd |
||
1492 | |||
1493 | /** |
||
1494 | * @return int |
||
1495 | */ |
||
1496 | public function getSecurityFinishTimestampMonotonic(): int |
||
1500 | |||
1501 | /** |
||
1502 | * @param int $SecurityFinishTimestampMonotonic |
||
1503 | * @return Systemd |
||
1504 | */ |
||
1505 | public function setSecurityFinishTimestampMonotonic(int $SecurityFinishTimestampMonotonic): Systemd |
||
1510 | |||
1511 | /** |
||
1512 | * @return \DateTimeImmutable |
||
1513 | */ |
||
1514 | public function getSecurityStartTimestamp(): \DateTimeImmutable |
||
1518 | |||
1519 | /** |
||
1520 | * @param \DateTimeImmutable $SecurityStartTimestamp |
||
1521 | * @return Systemd |
||
1522 | */ |
||
1523 | public function setSecurityStartTimestamp(\DateTimeImmutable $SecurityStartTimestamp): Systemd |
||
1528 | |||
1529 | /** |
||
1530 | * @return int |
||
1531 | */ |
||
1532 | public function getSecurityStartTimestampMonotonic(): int |
||
1536 | |||
1537 | /** |
||
1538 | * @param int $SecurityStartTimestampMonotonic |
||
1539 | * @return Systemd |
||
1540 | */ |
||
1541 | public function setSecurityStartTimestampMonotonic(int $SecurityStartTimestampMonotonic): Systemd |
||
1546 | |||
1547 | /** |
||
1548 | * @return bool |
||
1549 | */ |
||
1550 | public function isShowStatus(): bool |
||
1554 | |||
1555 | /** |
||
1556 | * @param bool $ShowStatus |
||
1557 | * @return Systemd |
||
1558 | */ |
||
1559 | public function setShowStatus(bool $ShowStatus): Systemd |
||
1564 | |||
1565 | /** |
||
1566 | * @return string |
||
1567 | */ |
||
1568 | public function getShutdownWatchdogUSec(): string |
||
1572 | |||
1573 | /** |
||
1574 | * @param string $ShutdownWatchdogUSec |
||
1575 | * @return Systemd |
||
1576 | */ |
||
1577 | public function setShutdownWatchdogUSec(string $ShutdownWatchdogUSec): Systemd |
||
1582 | |||
1583 | /** |
||
1584 | * @return string |
||
1585 | */ |
||
1586 | public function getSystemState(): string |
||
1590 | |||
1591 | /** |
||
1592 | * @param string $SystemState |
||
1593 | * @return Systemd |
||
1594 | */ |
||
1595 | public function setSystemState(string $SystemState): Systemd |
||
1600 | |||
1601 | /** |
||
1602 | * @return int |
||
1603 | */ |
||
1604 | public function getTimerSlackNSec(): int |
||
1608 | |||
1609 | /** |
||
1610 | * @param int $TimerSlackNSec |
||
1611 | * @return Systemd |
||
1612 | */ |
||
1613 | public function setTimerSlackNSec(int $TimerSlackNSec): Systemd |
||
1618 | |||
1619 | /** |
||
1620 | * @return array |
||
1621 | */ |
||
1622 | public function getUnitPath(): array |
||
1626 | |||
1627 | /** |
||
1628 | * @param array $UnitPath |
||
1629 | * @return Systemd |
||
1630 | */ |
||
1631 | public function setUnitPath(array $UnitPath): Systemd |
||
1636 | |||
1637 | /** |
||
1638 | * @return \DateTimeImmutable |
||
1639 | */ |
||
1640 | public function getUnitsLoadFinishTimestamp(): \DateTimeImmutable |
||
1644 | |||
1645 | /** |
||
1646 | * @param \DateTimeImmutable $UnitsLoadFinishTimestamp |
||
1647 | * @return Systemd |
||
1648 | */ |
||
1649 | public function setUnitsLoadFinishTimestamp(\DateTimeImmutable $UnitsLoadFinishTimestamp): Systemd |
||
1654 | |||
1655 | /** |
||
1656 | * @return int |
||
1657 | */ |
||
1658 | public function getUnitsLoadFinishTimestampMonotonic(): int |
||
1662 | |||
1663 | /** |
||
1664 | * @param int $UnitsLoadFinishTimestampMonotonic |
||
1665 | * @return Systemd |
||
1666 | */ |
||
1667 | public function setUnitsLoadFinishTimestampMonotonic(int $UnitsLoadFinishTimestampMonotonic): Systemd |
||
1672 | |||
1673 | /** |
||
1674 | * @return \DateTimeImmutable |
||
1675 | */ |
||
1676 | public function getUnitsLoadStartTimestamp(): \DateTimeImmutable |
||
1680 | |||
1681 | /** |
||
1682 | * @param \DateTimeImmutable $UnitsLoadStartTimestamp |
||
1683 | * @return Systemd |
||
1684 | */ |
||
1685 | public function setUnitsLoadStartTimestamp(\DateTimeImmutable $UnitsLoadStartTimestamp): Systemd |
||
1690 | |||
1691 | /** |
||
1692 | * @return int |
||
1693 | */ |
||
1694 | public function getUnitsLoadStartTimestampMonotonic(): int |
||
1698 | |||
1699 | /** |
||
1700 | * @param int $UnitsLoadStartTimestampMonotonic |
||
1701 | * @return Systemd |
||
1702 | */ |
||
1703 | public function setUnitsLoadStartTimestampMonotonic(int $UnitsLoadStartTimestampMonotonic): Systemd |
||
1708 | |||
1709 | /** |
||
1710 | * @return \DateTimeImmutable |
||
1711 | */ |
||
1712 | public function getUserspaceTimestamp(): \DateTimeImmutable |
||
1716 | |||
1717 | /** |
||
1718 | * @param \DateTimeImmutable $UserspaceTimestamp |
||
1719 | * @return Systemd |
||
1720 | */ |
||
1721 | public function setUserspaceTimestamp(\DateTimeImmutable $UserspaceTimestamp): Systemd |
||
1726 | |||
1727 | /** |
||
1728 | * @return int |
||
1729 | */ |
||
1730 | public function getUserspaceTimestampMonotonic(): int |
||
1734 | |||
1735 | /** |
||
1736 | * @param int $UserspaceTimestampMonotonic |
||
1737 | * @return Systemd |
||
1738 | */ |
||
1739 | public function setUserspaceTimestampMonotonic(int $UserspaceTimestampMonotonic): Systemd |
||
1744 | |||
1745 | /** |
||
1746 | * @return int |
||
1747 | */ |
||
1748 | public function getVersion(): int |
||
1752 | |||
1753 | /** |
||
1754 | * @param int $Version |
||
1755 | * @return Systemd |
||
1756 | */ |
||
1757 | public function setVersion(int $Version): Systemd |
||
1762 | |||
1763 | /** |
||
1764 | * @return string |
||
1765 | */ |
||
1766 | public function getVirtualization(): string |
||
1770 | |||
1771 | /** |
||
1772 | * @param string $Virtualization |
||
1773 | * @return Systemd |
||
1774 | */ |
||
1775 | public function setVirtualization(string $Virtualization): Systemd |
||
1780 | |||
1781 | public function getId() |
||
1785 | |||
1786 | public function jsonSerialize() |
||
1790 | } |