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.

Issue::getMessage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Inspector\Analysis\Result;
4
5
use Inspector\Analysis\Exception\AnalysisException;
6
7
/**
8
 * @author Kabir Baidhya
9
 */
10
class Issue
11
{
12
13
    /**
14
     * @var AnalysisException
15
     */
16
    protected $exception;
17
18
    protected $message;
19
20
    /**
21
     * @param AnalysisException $exception
22
     * @param $message
23
     */
24
    public function __construct(AnalysisException $exception, $message)
25
    {
26
        $this->exception = $exception;
27
        $this->message = $message;
28
    }
29
30
    public function getMessage()
0 ignored issues
show
Documentation introduced by
The return type could not be reliably inferred; please add a @return annotation.

Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a @return annotation as described here.

Loading history...
31
    {
32
        return $this->message;
33
    }
34
35
    public function getStartLine()
36
    {
37
        return $this->getNode()->getAttribute('startLine');
38
    }
39
40
    public function getNode()
41
    {
42
        return $this->exception->getNode();
43
    }
44
45
    public function getEndLine()
46
    {
47
        return $this->getNode()->getAttribute('endLine');
48
    }
49
}
50