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.

Options   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 5
eloc 14
c 1
b 0
f 0
dl 0
loc 37
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A toArray() 0 6 1
A connectTimeout() 0 3 1
A random() 0 3 1
A address() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace WyriHaximus\React\ChildProcess\Messenger\ChildProcess;
6
7
final class Options
8
{
9
    private string $random;
10
    private string $address;
11
    private int $connectTimeout;
12
13
    public function __construct(string $random, string $address, int $connectTimeout)
14
    {
15
        $this->random         = $random;
16
        $this->address        = $address;
17
        $this->connectTimeout = $connectTimeout;
18
    }
19
20
    public function random(): string
21
    {
22
        return $this->random;
23
    }
24
25
    public function address(): string
26
    {
27
        return $this->address;
28
    }
29
30
    public function connectTimeout(): int
31
    {
32
        return $this->connectTimeout;
33
    }
34
35
    /**
36
     * @return array<string|int>
37
     */
38
    public function toArray(): array
39
    {
40
        return [
41
            $this->random,
42
            $this->address,
43
            $this->connectTimeout,
44
        ];
45
    }
46
}
47