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.

ResponseRequest::getSmsPrice()   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 ResponseRequest
8
{
9
    /** @var int */
10
    protected $requestId;
11
12
    /** @var int */
13
    protected $customId;
14
15
    /** @var string[] */
16
    protected $numbers = [];
17
18
    /** @var int */
19
    protected $smsCount;
20
21
    /** @var float */
22
    protected $smsPrice;
23
24
    public function __construct(int $requestId, int $customId, int $smsCount, float $smsPrice)
25
    {
26
        $this->requestId = $requestId;
27
        $this->customId  = $customId;
28
        $this->smsCount  = $smsCount;
29
        $this->smsPrice  = $smsPrice;
30
    }
31
32
    public function getRequestId() : int
33
    {
34
        return $this->requestId;
35
    }
36
37
    public function getCustomId() : int
38
    {
39
        return $this->customId;
40
    }
41
42
    public function addNumber(string $number) : void
43
    {
44
        $this->numbers[] = $number;
45
    }
46
47
    /**
48
     * @return string[]
49
     */
50
    public function getNumbers() : array
51
    {
52
        return $this->numbers;
53
    }
54
55
    public function getSmsCount() : int
56
    {
57
        return $this->smsCount;
58
    }
59
60
    public function getSmsPrice() : float
61
    {
62
        return $this->smsPrice;
63
    }
64
}
65