Total Complexity | 7 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
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 |
||
58 | } |
||
59 | |||
60 | public function getSmsPrice() : float |
||
63 | } |
||
64 | } |
||
65 |