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   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 56
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 16
dl 0
loc 56
rs 10
c 0
b 0
f 0
ccs 0
cts 19
cp 0
wmc 7

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getSmsCount() 0 3 1
A getRequestId() 0 3 1
A getSmsPrice() 0 3 1
A getNumbers() 0 3 1
A addNumber() 0 3 1
A getCustomId() 0 3 1
A __construct() 0 6 1
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