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::available()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 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