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