GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Memory::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 6
c 1
b 0
f 1
dl 0
loc 14
ccs 7
cts 7
cp 1
rs 10
cc 1
nc 1
nop 6
crap 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\Server\Status\Server;
5
6
use Innmind\Server\Status\Server\Memory\Bytes;
7
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
39
    {
40 3
        return $this->wired;
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
54
    {
55 3
        return $this->swap;
56
    }
57
58 3
    public function used(): Bytes
59
    {
60 3
        return $this->used;
61
    }
62
}
63