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   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 55
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 7
lcom 0
cbo 0
dl 0
loc 55
c 0
b 0
f 0
ccs 20
cts 20
cp 1
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 15 1
A total() 0 4 1
A wired() 0 4 1
A active() 0 4 1
A free() 0 4 1
A swap() 0 4 1
A used() 0 4 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