1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Cryptommer\Smsir\Objects; |
4
|
|
|
|
5
|
|
|
use Illuminate\Support\Carbon; |
6
|
|
|
use PhpParser\Node\Expr\Array_; |
7
|
|
|
use Psr\Http\Message\ResponseInterface; |
8
|
|
|
use Psr\Http\Message\StreamInterface; |
9
|
|
|
|
10
|
|
|
class ReportData { |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* @var string |
14
|
|
|
*/ |
15
|
|
|
public string $MessageId; |
16
|
|
|
|
17
|
|
|
/** |
18
|
|
|
* @var int |
19
|
|
|
*/ |
20
|
|
|
public int $Mobile; |
21
|
|
|
|
22
|
|
|
/** |
23
|
|
|
* @var string |
24
|
|
|
*/ |
25
|
|
|
public string $MessageText; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @var int |
29
|
|
|
*/ |
30
|
|
|
public int $SendDateTime; |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* @var int |
34
|
|
|
*/ |
35
|
|
|
public int $LineNumber; |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* @var float |
39
|
|
|
*/ |
40
|
|
|
public float $Cost; |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @var int|null |
44
|
|
|
*/ |
45
|
|
|
public ?int $DeliveryState; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @var int|null |
49
|
|
|
*/ |
50
|
|
|
public ?int $DeliveryDateTime; |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @param $data array |
54
|
|
|
*/ |
55
|
|
|
public function __construct(array $data) { |
56
|
|
|
$this->MessageId = $data['messageId']; |
57
|
|
|
$this->Mobile = $data['mobile']; |
58
|
|
|
$this->MessageText = $data['messageText']; |
59
|
|
|
$this->SendDateTime = $data['sendDateTime']; |
60
|
|
|
$this->LineNumber = $data['lineNumber']; |
61
|
|
|
$this->Cost = $data['cost']; |
62
|
|
|
$this->DeliveryState = $data['deliveryState']; |
63
|
|
|
$this->DeliveryDateTime = $data['deliveryDateTime']; |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @return string |
68
|
|
|
*/ |
69
|
|
|
public function getMessageId(): string { |
70
|
|
|
return $this->MessageId; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
/** |
74
|
|
|
* @return int |
75
|
|
|
*/ |
76
|
|
|
public function getMobile(): int { |
77
|
|
|
return $this->Mobile; |
78
|
|
|
} |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* @return string |
82
|
|
|
*/ |
83
|
|
|
public function getMessageText(): string { |
84
|
|
|
return $this->MessageText; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @return int |
89
|
|
|
*/ |
90
|
|
|
public function getLineNumber(): int { |
91
|
|
|
return $this->LineNumber; |
92
|
|
|
} |
93
|
|
|
|
94
|
|
|
/** |
95
|
|
|
* @return float |
96
|
|
|
*/ |
97
|
|
|
public function getCost(): float { |
98
|
|
|
return $this->Cost; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* @return int|null |
103
|
|
|
*/ |
104
|
|
|
public function getDeliveryDateTime(): ?int { |
105
|
|
|
return $this->DeliveryDateTime; |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* @return int|null |
110
|
|
|
*/ |
111
|
|
|
public function getDeliveryState(): ?int { |
112
|
|
|
return $this->DeliveryState; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
/** |
116
|
|
|
* @return int |
117
|
|
|
*/ |
118
|
|
|
public function getSendDateTime(): int { |
119
|
|
|
return $this->SendDateTime; |
120
|
|
|
} |
121
|
|
|
|
122
|
|
|
} |
123
|
|
|
|