Total Complexity | 6 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
11 | final class Cpu |
||
12 | { |
||
13 | private Percentage $user; |
||
14 | private Percentage $system; |
||
15 | private Percentage $idle; |
||
16 | private Cores $cores; |
||
17 | |||
18 | 18 | public function __construct( |
|
28 | 18 | } |
|
29 | |||
30 | 3 | public function user(): Percentage |
|
31 | { |
||
32 | 3 | return $this->user; |
|
33 | } |
||
34 | |||
35 | 3 | public function system(): Percentage |
|
36 | { |
||
37 | 3 | return $this->system; |
|
38 | } |
||
39 | |||
40 | 3 | public function idle(): Percentage |
|
41 | { |
||
42 | 3 | return $this->idle; |
|
43 | } |
||
44 | |||
45 | 3 | public function cores(): Cores |
|
48 | } |
||
49 | |||
50 | 3 | public function toString(): string |
|
51 | { |
||
60 |