| Total Complexity | 7 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 8 | final class Memory |
||
| 9 | { |
||
| 10 | private Bytes $total; |
||
| 11 | private Bytes $wired; |
||
| 12 | private Bytes $active; |
||
| 13 | private Bytes $free; |
||
| 14 | private Bytes $swap; |
||
| 15 | private Bytes $used; |
||
| 16 | |||
| 17 | 18 | public function __construct( |
|
| 18 | Bytes $total, |
||
| 19 | Bytes $wired, |
||
| 20 | Bytes $active, |
||
| 21 | Bytes $free, |
||
| 22 | Bytes $swap, |
||
| 23 | Bytes $used |
||
| 24 | ) { |
||
| 25 | 18 | $this->total = $total; |
|
| 26 | 18 | $this->wired = $wired; |
|
| 27 | 18 | $this->active = $active; |
|
| 28 | 18 | $this->free = $free; |
|
| 29 | 18 | $this->swap = $swap; |
|
| 30 | 18 | $this->used = $used; |
|
| 31 | 18 | } |
|
| 32 | |||
| 33 | 3 | public function total(): Bytes |
|
| 34 | { |
||
| 35 | 3 | return $this->total; |
|
| 36 | } |
||
| 37 | |||
| 38 | 3 | public function wired(): Bytes |
|
| 41 | } |
||
| 42 | |||
| 43 | 3 | public function active(): Bytes |
|
| 44 | { |
||
| 45 | 3 | return $this->active; |
|
| 46 | } |
||
| 47 | |||
| 48 | 3 | public function free(): Bytes |
|
| 49 | { |
||
| 50 | 3 | return $this->free; |
|
| 51 | } |
||
| 52 | |||
| 53 | 3 | public function swap(): Bytes |
|
| 56 | } |
||
| 57 | |||
| 58 | 3 | public function used(): Bytes |
|
| 61 | } |
||
| 62 | } |
||
| 63 |