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.

Entry   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 61
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 0
dl 0
loc 61
ccs 13
cts 13
cp 1
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getLevel() 0 4 1
A getMessage() 0 4 1
A getPsrMessage() 0 4 1
A getContext() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace WyriHaximus\React\PSR3\Phergie;
4
5
final class Entry
6
{
7
    /**
8
     * @var string
9
     */
10
    private $level;
11
12
    /**
13
     * @var string
14
     */
15
    private $message;
16
17
    /**
18
     * @var array
19
     */
20
    private $context;
21
22
    /**
23
     * @param string $level
24
     * @param string $message
25
     * @param array  $context
26
     */
27 14
    public function __construct($level, $message, array $context)
28
    {
29 14
        $this->level = $level;
30 14
        $this->message = $message;
31 14
        $this->context = $context;
32 14
    }
33
34
    /**
35
     * @return string
36
     */
37 1
    public function getLevel(): string
38
    {
39 1
        return $this->level;
40
    }
41
42
    /**
43
     * @return string
44
     */
45 1
    public function getMessage(): string
46
    {
47 1
        return $this->message;
48
    }
49
50
    /**
51
     * @return string
52
     */
53 14
    public function getPsrMessage(): string
54
    {
55 14
        return $this->level . ' ' . $this->message;
56
    }
57
58
    /**
59
     * @return array
60
     */
61 1
    public function getContext(): array
62
    {
63 1
        return $this->context;
64
    }
65
}
66