| Total Complexity | 9 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Coverage | 91.67% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 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 | |||
| 28 | 18 | public function __construct( |
|
| 29 | Server $server, |
||
| 30 | TimeContinuumInterface $clock, |
||
| 31 | ElapsedPeriod $threshold |
||
| 32 | ) { |
||
| 33 | 18 | $this->server = $server; |
|
| 34 | 18 | $this->clock = $clock; |
|
| 35 | 18 | $this->threshold = $threshold; |
|
| 36 | 18 | } |
|
| 37 | |||
| 38 | 3 | public function cpu(): Cpu |
|
| 55 | } |
||
| 56 | |||
| 57 | 3 | public function memory(): Memory |
|
| 58 | { |
||
| 59 | 3 | return $this->server->memory(); |
|
| 60 | } |
||
| 61 | |||
| 62 | 3 | public function processes(): Processes |
|
| 63 | { |
||
| 64 | 3 | return $this->server->processes(); |
|
| 65 | } |
||
| 66 | |||
| 67 | 3 | public function loadAverage(): LoadAverage |
|
| 68 | { |
||
| 69 | 3 | return $this->server->loadAverage(); |
|
| 70 | } |
||
| 71 | |||
| 72 | 3 | public function disk(): Disk |
|
| 75 | } |
||
| 76 | |||
| 77 | public function tmp(): PathInterface |
||
| 80 | } |
||
| 81 | } |
||
| 82 |