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.

Response::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
ccs 0
cts 2
cp 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimPod\SmsManager;
6
7
class Response
8
{
9
    private const STATUS_OK = 'OK';
10
11
    /** @var int */
12
    protected $id;
13
14
    /** @var string */
15
    protected $type;
16
17
    /** @var bool */
18
    protected $isOk;
19
20
    /** @var ResponseRequest[] */
21
    protected $responseRequests = [];
22
23
    public function __construct(int $id, string $type)
24
    {
25
        $this->id   = $id;
26
        $this->isOk = $type === self::STATUS_OK;
27
        $this->type = $type;
28
    }
29
30
    public function getId() : int
31
    {
32
        return $this->id;
33
    }
34
35
    public function getType() : string
36
    {
37
        return $this->type;
38
    }
39
40
    public function addResponseRequest(ResponseRequest $responseRequest) : void
41
    {
42
        $this->responseRequests[] = $responseRequest;
43
    }
44
45
    /**
46
     * @return ResponseRequest[]
47
     */
48
    public function getResponseRequests() : array
49
    {
50
        return $this->responseRequests;
51
    }
52
}
53