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.
Completed
Branch develop (9ca8cc)
by Baptiste
03:18
created

Memory::swap()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
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 $total;
11
    private $wired;
12
    private $active;
13
    private $free;
14
    private $swap;
15
    private $used;
16
17 1
    public function __construct(
18
        Bytes $total,
19
        Bytes $wired,
20
        Bytes $active,
21
        Bytes $free,
22
        Bytes $swap,
23
        Bytes $used
24
    ) {
25 1
        $this->total = $total;
26 1
        $this->wired = $wired;
27 1
        $this->active = $active;
28 1
        $this->free = $free;
29 1
        $this->swap = $swap;
30 1
        $this->used = $used;
31 1
    }
32
33 1
    public function total(): Bytes
34
    {
35 1
        return $this->total;
36
    }
37
38 1
    public function wired(): Bytes
39
    {
40 1
        return $this->wired;
41
    }
42
43 1
    public function active(): Bytes
44
    {
45 1
        return $this->active;
46
    }
47
48 1
    public function free(): Bytes
49
    {
50 1
        return $this->free;
51
    }
52
53 1
    public function swap(): Bytes
54
    {
55 1
        return $this->swap;
56
    }
57
58 1
    public function used(): Bytes
59
    {
60 1
        return $this->used;
61
    }
62
}
63