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

Process   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 pid() 0 4 1
A user() 0 4 1
A cpu() 0 4 1
A memory() 0 4 1
A start() 0 4 1
A command() 0 4 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Innmind\Server\Status\Server;
5
6
use Innmind\Server\Status\Server\{
7
    Process\Pid,
8
    Process\User,
9
    Process\Command,
10
    Cpu\Percentage,
11
    Memory\Bytes
12
};
13
use Innmind\TimeContinuum\PointInTimeInterface;
14
15
final class Process
16
{
17
    private $pid;
18
    private $user;
19
    private $cpu;
20
    private $memory;
21
    private $start;
22
    private $command;
23
24 1
    public function __construct(
25
        Pid $pid,
26
        User $user,
27
        Percentage $cpu,
28
        Bytes $memory,
29
        PointInTimeInterface $start,
30
        Command $command
31
    ) {
32 1
        $this->pid = $pid;
33 1
        $this->user = $user;
34 1
        $this->cpu = $cpu;
35 1
        $this->memory = $memory;
36 1
        $this->start = $start;
37 1
        $this->command = $command;
38 1
    }
39
40 1
    public function pid(): Pid
41
    {
42 1
        return $this->pid;
43
    }
44
45 1
    public function user(): User
46
    {
47 1
        return $this->user;
48
    }
49
50 1
    public function cpu(): Percentage
51
    {
52 1
        return $this->cpu;
53
    }
54
55 1
    public function memory(): Bytes
56
    {
57 1
        return $this->memory;
58
    }
59
60 1
    public function start(): PointInTimeInterface
61
    {
62 1
        return $this->start;
63
    }
64
65 1
    public function command(): Command
66
    {
67 1
        return $this->command;
68
    }
69
}
70