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
Push — develop ( 78c84d...9bdc70 )
by Baptiste
04:48
created

Volume::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

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