1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Phrlog\Zvonok\Phone\Response; |
4
|
|
|
|
5
|
|
|
/** |
6
|
|
|
* Class CallResultResponse |
7
|
|
|
* @package Phrlog\Zvonok\Response\Phone\Response |
8
|
|
|
*/ |
9
|
|
|
class CallResultResponse implements ResponseInterface |
10
|
|
|
{ |
11
|
|
|
/** |
12
|
|
|
* @var string |
13
|
|
|
*/ |
14
|
|
|
public $phone; |
15
|
|
|
|
16
|
|
|
/** |
17
|
|
|
* @var string |
18
|
|
|
*/ |
19
|
|
|
public $statusDisplay; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* @var string|null |
23
|
|
|
*/ |
24
|
|
|
public $recordedAudio; |
25
|
|
|
|
26
|
|
|
/** |
27
|
|
|
* @var string |
28
|
|
|
*/ |
29
|
|
|
public $status; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @var string|null |
33
|
|
|
*/ |
34
|
|
|
public $dialStatusDisplay; |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* @var string|null |
38
|
|
|
*/ |
39
|
|
|
public $dialStatus; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @var int |
43
|
|
|
*/ |
44
|
|
|
public $callId; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var string|null |
48
|
|
|
*/ |
49
|
|
|
public $userChoice; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @var \DateTime|null |
53
|
|
|
*/ |
54
|
|
|
public $updated; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @var string|null |
58
|
|
|
*/ |
59
|
|
|
public $userChoiceDisplay; |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @var string |
63
|
|
|
*/ |
64
|
|
|
public $actionType; |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @var \DateTime |
68
|
|
|
*/ |
69
|
|
|
public $created; |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @var int |
73
|
|
|
*/ |
74
|
|
|
public $buttonNum; |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* @var \DateTime|null |
78
|
|
|
*/ |
79
|
|
|
public $completed; |
80
|
|
|
|
81
|
|
|
/** |
82
|
|
|
* @var int |
83
|
|
|
*/ |
84
|
|
|
public $duration; |
85
|
|
|
|
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @param string $phone |
89
|
|
|
*/ |
90
|
|
|
public function setPhone(string $phone): void |
91
|
|
|
{ |
92
|
|
|
$this->phone = $phone; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @param string $statusDisplay |
97
|
|
|
*/ |
98
|
|
|
public function setStatusDisplay(string $statusDisplay): void |
99
|
|
|
{ |
100
|
|
|
$this->statusDisplay = $statusDisplay; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @param string|null $recordedAudio |
105
|
|
|
*/ |
106
|
|
|
public function setRecordedAudio(?string $recordedAudio): void |
107
|
|
|
{ |
108
|
|
|
$this->recordedAudio = $recordedAudio; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* @param string $status |
113
|
|
|
*/ |
114
|
|
|
public function setStatus(string $status): void |
115
|
|
|
{ |
116
|
|
|
$this->status = $status; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
/** |
120
|
|
|
* @param null|string $dialStatusDisplay |
121
|
|
|
*/ |
122
|
|
|
public function setDialStatusDisplay(?string $dialStatusDisplay): void |
123
|
|
|
{ |
124
|
|
|
$this->dialStatusDisplay = $dialStatusDisplay; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
/** |
128
|
|
|
* @param null|string $dialStatus |
129
|
|
|
*/ |
130
|
|
|
public function setDialStatus(?string $dialStatus): void |
131
|
|
|
{ |
132
|
|
|
$this->dialStatus = $dialStatus; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* @param int $callId |
137
|
|
|
*/ |
138
|
|
|
public function setCallId(int $callId): void |
139
|
|
|
{ |
140
|
|
|
$this->callId = $callId; |
141
|
|
|
} |
142
|
|
|
|
143
|
|
|
/** |
144
|
|
|
* @param null|string $userChoice |
145
|
|
|
*/ |
146
|
|
|
public function setUserChoice(?string $userChoice): void |
147
|
|
|
{ |
148
|
|
|
$this->userChoice = $userChoice; |
149
|
|
|
} |
150
|
|
|
|
151
|
|
|
/** |
152
|
|
|
* @param \DateTime|null $updated |
153
|
|
|
*/ |
154
|
|
|
public function setUpdated(?\DateTime $updated): void |
155
|
|
|
{ |
156
|
|
|
$this->updated = $updated; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
/** |
160
|
|
|
* @param string|null $userChoiceDisplay |
161
|
|
|
*/ |
162
|
|
|
public function setUserChoiceDisplay(?string $userChoiceDisplay): void |
163
|
|
|
{ |
164
|
|
|
$this->userChoiceDisplay = $userChoiceDisplay; |
165
|
|
|
} |
166
|
|
|
|
167
|
|
|
/** |
168
|
|
|
* @param \DateTime $created |
169
|
|
|
*/ |
170
|
|
|
public function setCreated(\DateTime $created): void |
171
|
|
|
{ |
172
|
|
|
$this->created = $created; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* @param int|null $buttonNum |
177
|
|
|
*/ |
178
|
|
|
public function setButtonNum(?int $buttonNum): void |
179
|
|
|
{ |
180
|
|
|
$this->buttonNum = $buttonNum; |
181
|
|
|
} |
182
|
|
|
|
183
|
|
|
/** |
184
|
|
|
* @param \DateTime|null $completed |
185
|
|
|
*/ |
186
|
|
|
public function setCompleted(?\DateTime $completed): void |
187
|
|
|
{ |
188
|
|
|
$this->completed = $completed; |
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
/** |
192
|
|
|
* @param int|null $duration |
193
|
|
|
*/ |
194
|
|
|
public function setDuration(?int $duration): void |
195
|
|
|
{ |
196
|
|
|
$this->duration = $duration; |
197
|
|
|
} |
198
|
|
|
|
199
|
|
|
/** |
200
|
|
|
* @param string|null $actionType |
201
|
|
|
*/ |
202
|
|
|
public function setActionType(?string $actionType): void |
203
|
|
|
{ |
204
|
|
|
$this->actionType = $actionType; |
205
|
|
|
} |
206
|
|
|
} |
207
|
|
|
|