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.

Volume   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 6
eloc 16
c 1
b 0
f 1
dl 0
loc 45
ccs 17
cts 17
cp 1
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A used() 0 3 1
A __construct() 0 12 1
A usage() 0 3 1
A mountPoint() 0 3 1
A size() 0 3 1
A available() 0 3 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\Server\Status\Server\Disk;
5
6
use Innmind\Server\Status\Server\{
7
    Disk\Volume\MountPoint,
8
    Disk\Volume\Usage,
9
    Memory\Bytes,
10
};
11
12
final class Volume
13
{
14
    private MountPoint $mountPoint;
15
    private Bytes $size;
16
    private Bytes $available;
17
    private Bytes $used;
18
    private Usage $usage;
19
20 9
    public function __construct(
21
        MountPoint $mountPoint,
22
        Bytes $size,
23
        Bytes $available,
24
        Bytes $used,
25
        Usage $usage
26
    ) {
27 9
        $this->mountPoint = $mountPoint;
28 9
        $this->size = $size;
29 9
        $this->available = $available;
30 9
        $this->used = $used;
31 9
        $this->usage = $usage;
32 9
    }
33
34 9
    public function mountPoint(): MountPoint
35
    {
36 9
        return $this->mountPoint;
37
    }
38
39 6
    public function size(): Bytes
40
    {
41 6
        return $this->size;
42
    }
43
44 6
    public function available(): Bytes
45
    {
46 6
        return $this->available;
47
    }
48
49 6
    public function used(): Bytes
50
    {
51 6
        return $this->used;
52
    }
53
54 6
    public function usage(): Usage
55
    {
56 6
        return $this->usage;
57
    }
58
}
59