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::getContext()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 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