Total Complexity | 9 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
20 | final class CacheCpu implements Server |
||
21 | { |
||
22 | private $server; |
||
23 | private $clock; |
||
24 | private $threshold; |
||
25 | private $cachedAt; |
||
26 | private $data; |
||
27 | 12 | ||
28 | public function __construct( |
||
29 | Server $server, |
||
30 | TimeContinuumInterface $clock, |
||
31 | ElapsedPeriod $threshold |
||
32 | 12 | ) { |
|
33 | 12 | $this->server = $server; |
|
34 | 12 | $this->clock = $clock; |
|
35 | 12 | $this->threshold = $threshold; |
|
36 | } |
||
37 | 2 | ||
38 | public function cpu(): Cpu |
||
55 | } |
||
56 | 2 | ||
57 | public function memory(): Memory |
||
58 | 2 | { |
|
59 | return $this->server->memory(); |
||
60 | } |
||
61 | 2 | ||
62 | public function processes(): Processes |
||
63 | 2 | { |
|
64 | return $this->server->processes(); |
||
65 | } |
||
66 | 2 | ||
67 | public function loadAverage(): LoadAverage |
||
68 | 2 | { |
|
69 | return $this->server->loadAverage(); |
||
70 | } |
||
71 | 2 | ||
72 | public function disk(): Disk |
||
75 | } |
||
76 | |||
77 | public function tmp(): PathInterface |
||
80 | } |
||
81 | } |
||
82 |