-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathReport.php
More file actions
159 lines (142 loc) · 3.04 KB
/
Report.php
File metadata and controls
159 lines (142 loc) · 3.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<?php
/*
* Copyright (C) 2014 jackkum
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
namespace jackkum\PHPPDU;
class Report extends PDU {
/**
* referenced bytes
* @var integer
*/
protected $_reference;
/**
* datetime
* @var PDU\SCTS
*/
protected $_timestamp;
/**
* datetime
* @var PDU\SCTS
*/
protected $_discharge;
/**
* report status
* 0x00 Short message received succesfully
* 0x01 Short message forwarded to the mobile phone, but unable to confirm delivery
* 0x02 Short message replaced by the service center
* 0x20 Congestion
* 0x21 SME busy
* 0x22 No response from SME
* 0x23 Service rejected
* 0x24 Quality of service not available
* 0x25 Error in SME
* 0x40 Remote procedure error
* 0x41 Incompatible destination
* 0x42 Connection rejected by SME
* 0x43 Not obtainable
* 0x44 Quality of service not available
* 0x45 No interworking available
* 0x46 SM validity period expired
* 0x47 SM deleted by originating SME
* 0x48 SM deleted by service center administration
* 0x49 SM does not exist
* 0x60 Congestion
* 0x61 SME busy
* 0x62 No response from SME
* 0x63 Service rejected
* 0x64 Quality of service not available
* 0x65 Error in SME
*
* @var integer
*/
protected $_status;
/**
* set pdu type
* @param array $params
*/
public function initType(array $params = array())
{
$this->_type = new PDU\Type\Report($params);
}
/**
* get a referenced bytes
* @return integer
*/
public function getReference()
{
return $this->_reference;
}
/**
* setter for reference
* @param integer $reference
*/
public function setReference($reference)
{
$this->_reference = $reference;
}
/**
*
* @return PDU\SCTS
*/
public function getDateTime()
{
return $this->_timestamp;
}
/**
* setter timestamp
* @param string|int $timestamp
*/
public function setDateTime($timestamp)
{
$this->_timestamp = $timestamp;
}
/**
*
* @return PDU\SCTS
*/
public function getDischarge()
{
return $this->_discharge;
}
/**
* setter for discharge
* @param string|int $discharge
*/
public function setDischarge($discharge)
{
$this->_discharge = $discharge;
}
/**
* status report
* @return integer
*/
public function getStatus()
{
return $this->_status;
}
/**
* setter for status
* @param integer $status
*/
public function setStatus($status)
{
$this->_status = $status;
}
public function getStart()
{
return NULL;
}
}