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   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 47
c 0
b 0
f 0
ccs 17
cts 17
cp 1
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 13 1
A mountPoint() 0 4 1
A size() 0 4 1
A available() 0 4 1
A used() 0 4 1
A usage() 0 4 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