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 $user; |
||
14 | private $system; |
||
15 | private $idle; |
||
16 | private $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 |
|
46 | { |
||
47 | 3 | return $this->cores; |
|
48 | } |
||
49 | |||
50 | 3 | public function __toString(): string |
|
57 | ); |
||
58 | } |
||
59 | } |
||
60 |