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