|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace Spinen\Nable\Ncentral\Type; |
|
4
|
|
|
|
|
5
|
|
|
|
|
6
|
|
|
use Phpro\SoapClient\Type\RequestInterface; |
|
7
|
|
|
|
|
8
|
|
|
class AcknowledgeNotification implements RequestInterface |
|
9
|
|
|
{ |
|
10
|
|
|
|
|
11
|
|
|
/** |
|
12
|
|
|
* @var int |
|
13
|
|
|
*/ |
|
14
|
|
|
private $activeNotificationTriggerIDArray; |
|
15
|
|
|
|
|
16
|
|
|
/** |
|
17
|
|
|
* @var int |
|
18
|
|
|
*/ |
|
19
|
|
|
private $correlatedProfileIDArray; |
|
20
|
|
|
|
|
21
|
|
|
/** |
|
22
|
|
|
* @var string |
|
23
|
|
|
*/ |
|
24
|
|
|
private $username; |
|
25
|
|
|
|
|
26
|
|
|
/** |
|
27
|
|
|
* @var string |
|
28
|
|
|
*/ |
|
29
|
|
|
private $password; |
|
30
|
|
|
|
|
31
|
|
|
/** |
|
32
|
|
|
* @var string |
|
33
|
|
|
*/ |
|
34
|
|
|
private $note; |
|
35
|
|
|
|
|
36
|
|
|
/** |
|
37
|
|
|
* @var bool |
|
38
|
|
|
*/ |
|
39
|
|
|
private $addToDeviceNotes; |
|
40
|
|
|
|
|
41
|
|
|
/** |
|
42
|
|
|
* @var bool |
|
43
|
|
|
*/ |
|
44
|
|
|
private $suppressOnEscalation; |
|
45
|
|
|
|
|
46
|
|
|
/** |
|
47
|
|
|
* Constructor |
|
48
|
|
|
* |
|
49
|
|
|
* @var int $activeNotificationTriggerIDArray |
|
50
|
|
|
* @var int $correlatedProfileIDArray |
|
51
|
|
|
* @var string $username |
|
52
|
|
|
* @var string $password |
|
53
|
|
|
* @var string $note |
|
54
|
|
|
* @var bool $addToDeviceNotes |
|
55
|
|
|
* @var bool $suppressOnEscalation |
|
56
|
|
|
*/ |
|
57
|
|
|
public function __construct($activeNotificationTriggerIDArray, $correlatedProfileIDArray, $username, $password, $note, $addToDeviceNotes, $suppressOnEscalation) |
|
58
|
|
|
{ |
|
59
|
|
|
$this->activeNotificationTriggerIDArray = $activeNotificationTriggerIDArray; |
|
60
|
|
|
$this->correlatedProfileIDArray = $correlatedProfileIDArray; |
|
61
|
|
|
$this->username = $username; |
|
62
|
|
|
$this->password = $password; |
|
63
|
|
|
$this->note = $note; |
|
64
|
|
|
$this->addToDeviceNotes = $addToDeviceNotes; |
|
65
|
|
|
$this->suppressOnEscalation = $suppressOnEscalation; |
|
66
|
|
|
} |
|
67
|
|
|
|
|
68
|
|
|
/** |
|
69
|
|
|
* @return int |
|
70
|
|
|
*/ |
|
71
|
|
|
public function getActiveNotificationTriggerIDArray() |
|
72
|
|
|
{ |
|
73
|
|
|
return $this->activeNotificationTriggerIDArray; |
|
74
|
|
|
} |
|
75
|
|
|
|
|
76
|
|
|
/** |
|
77
|
|
|
* @param int $activeNotificationTriggerIDArray |
|
78
|
|
|
* @return AcknowledgeNotification |
|
79
|
|
|
*/ |
|
80
|
|
|
public function withActiveNotificationTriggerIDArray($activeNotificationTriggerIDArray) |
|
81
|
|
|
{ |
|
82
|
|
|
$new = clone $this; |
|
83
|
|
|
$new->activeNotificationTriggerIDArray = $activeNotificationTriggerIDArray; |
|
84
|
|
|
|
|
85
|
|
|
return $new; |
|
86
|
|
|
} |
|
87
|
|
|
|
|
88
|
|
|
/** |
|
89
|
|
|
* @return int |
|
90
|
|
|
*/ |
|
91
|
|
|
public function getCorrelatedProfileIDArray() |
|
92
|
|
|
{ |
|
93
|
|
|
return $this->correlatedProfileIDArray; |
|
94
|
|
|
} |
|
95
|
|
|
|
|
96
|
|
|
/** |
|
97
|
|
|
* @param int $correlatedProfileIDArray |
|
98
|
|
|
* @return AcknowledgeNotification |
|
99
|
|
|
*/ |
|
100
|
|
|
public function withCorrelatedProfileIDArray($correlatedProfileIDArray) |
|
101
|
|
|
{ |
|
102
|
|
|
$new = clone $this; |
|
103
|
|
|
$new->correlatedProfileIDArray = $correlatedProfileIDArray; |
|
104
|
|
|
|
|
105
|
|
|
return $new; |
|
106
|
|
|
} |
|
107
|
|
|
|
|
108
|
|
|
/** |
|
109
|
|
|
* @return string |
|
110
|
|
|
*/ |
|
111
|
|
|
public function getUsername() |
|
112
|
|
|
{ |
|
113
|
|
|
return $this->username; |
|
114
|
|
|
} |
|
115
|
|
|
|
|
116
|
|
|
/** |
|
117
|
|
|
* @param string $username |
|
118
|
|
|
* @return AcknowledgeNotification |
|
119
|
|
|
*/ |
|
120
|
|
|
public function withUsername($username) |
|
121
|
|
|
{ |
|
122
|
|
|
$new = clone $this; |
|
123
|
|
|
$new->username = $username; |
|
124
|
|
|
|
|
125
|
|
|
return $new; |
|
126
|
|
|
} |
|
127
|
|
|
|
|
128
|
|
|
/** |
|
129
|
|
|
* @return string |
|
130
|
|
|
*/ |
|
131
|
|
|
public function getPassword() |
|
132
|
|
|
{ |
|
133
|
|
|
return $this->password; |
|
134
|
|
|
} |
|
135
|
|
|
|
|
136
|
|
|
/** |
|
137
|
|
|
* @param string $password |
|
138
|
|
|
* @return AcknowledgeNotification |
|
139
|
|
|
*/ |
|
140
|
|
|
public function withPassword($password) |
|
141
|
|
|
{ |
|
142
|
|
|
$new = clone $this; |
|
143
|
|
|
$new->password = $password; |
|
144
|
|
|
|
|
145
|
|
|
return $new; |
|
146
|
|
|
} |
|
147
|
|
|
|
|
148
|
|
|
/** |
|
149
|
|
|
* @return string |
|
150
|
|
|
*/ |
|
151
|
|
|
public function getNote() |
|
152
|
|
|
{ |
|
153
|
|
|
return $this->note; |
|
154
|
|
|
} |
|
155
|
|
|
|
|
156
|
|
|
/** |
|
157
|
|
|
* @param string $note |
|
158
|
|
|
* @return AcknowledgeNotification |
|
159
|
|
|
*/ |
|
160
|
|
|
public function withNote($note) |
|
161
|
|
|
{ |
|
162
|
|
|
$new = clone $this; |
|
163
|
|
|
$new->note = $note; |
|
164
|
|
|
|
|
165
|
|
|
return $new; |
|
166
|
|
|
} |
|
167
|
|
|
|
|
168
|
|
|
/** |
|
169
|
|
|
* @return bool |
|
170
|
|
|
*/ |
|
171
|
|
|
public function getAddToDeviceNotes() |
|
172
|
|
|
{ |
|
173
|
|
|
return $this->addToDeviceNotes; |
|
174
|
|
|
} |
|
175
|
|
|
|
|
176
|
|
|
/** |
|
177
|
|
|
* @param bool $addToDeviceNotes |
|
178
|
|
|
* @return AcknowledgeNotification |
|
179
|
|
|
*/ |
|
180
|
|
|
public function withAddToDeviceNotes($addToDeviceNotes) |
|
181
|
|
|
{ |
|
182
|
|
|
$new = clone $this; |
|
183
|
|
|
$new->addToDeviceNotes = $addToDeviceNotes; |
|
184
|
|
|
|
|
185
|
|
|
return $new; |
|
186
|
|
|
} |
|
187
|
|
|
|
|
188
|
|
|
/** |
|
189
|
|
|
* @return bool |
|
190
|
|
|
*/ |
|
191
|
|
|
public function getSuppressOnEscalation() |
|
192
|
|
|
{ |
|
193
|
|
|
return $this->suppressOnEscalation; |
|
194
|
|
|
} |
|
195
|
|
|
|
|
196
|
|
|
/** |
|
197
|
|
|
* @param bool $suppressOnEscalation |
|
198
|
|
|
* @return AcknowledgeNotification |
|
199
|
|
|
*/ |
|
200
|
|
|
public function withSuppressOnEscalation($suppressOnEscalation) |
|
201
|
|
|
{ |
|
202
|
|
|
$new = clone $this; |
|
203
|
|
|
$new->suppressOnEscalation = $suppressOnEscalation; |
|
204
|
|
|
|
|
205
|
|
|
return $new; |
|
206
|
|
|
} |
|
207
|
|
|
|
|
208
|
|
|
|
|
209
|
|
|
} |
|
210
|
|
|
|
|
211
|
|
|
|