File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,6 @@ class DeliveryReceipt
149
149
'message-timestamp ' ,
150
150
'messageId ' ,
151
151
'msisdn ' ,
152
- 'network-code ' ,
153
152
'price ' ,
154
153
'status ' ,
155
154
'to '
@@ -227,12 +226,15 @@ public function __construct(array $data)
227
226
$ this ->messageTimestamp = new DateTimeImmutable ($ data ['message-timestamp ' ]);
228
227
$ this ->messageId = $ data ['messageId ' ];
229
228
$ this ->msisdn = $ data ['msisdn ' ];
230
- $ this ->networkCode = $ data ['network-code ' ];
231
229
$ this ->price = $ data ['price ' ];
232
230
$ this ->status = $ data ['status ' ];
233
231
$ this ->to = $ data ['to ' ];
234
232
$ this ->apiKey = $ data ['api-key ' ];
235
233
234
+ if (isset ($ data ['network-code ' ])) {
235
+ $ this ->networkCode = $ data ['network-code ' ];
236
+ }
237
+
236
238
if (isset ($ data ['client-ref ' ])) {
237
239
$ this ->clientRef = $ data ['client-ref ' ];
238
240
}
You can’t perform that action at this time.
0 commit comments