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::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 15
c 0
b 0
f 0
ccs 8
cts 8
cp 1
rs 9.4285
cc 1
eloc 13
nc 1
nop 6
crap 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