File tree 4 files changed +11
-126
lines changed
4 files changed +11
-126
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class Client
19
19
const ENABLE_CONVERSATIONSAPI_WHATSAPP_SANDBOX = 'ENABLE_CONVERSATIONSAPI_WHATSAPP_SANDBOX ' ;
20
20
const CONVERSATIONSAPI_WHATSAPP_SANDBOX_ENDPOINT = 'https://whatsapp-sandbox.messagebird.com/v1 ' ;
21
21
22
- const CLIENT_VERSION = '1.19.1 ' ;
22
+ const CLIENT_VERSION = '1.19.2 ' ;
23
23
24
24
/**
25
25
* @var string
Original file line number Diff line number Diff line change @@ -127,9 +127,9 @@ class Message extends Base
127
127
/**
128
128
* An array of recipients
129
129
*
130
- * @var Recipients
130
+ * @var array
131
131
*/
132
- public $ recipients ;
132
+ public $ recipients = array () ;
133
133
134
134
/**
135
135
* The URL to send status delivery reports for the message to
@@ -225,8 +225,14 @@ public function loadFromArray ($object)
225
225
{
226
226
parent ::loadFromArray ($ object );
227
227
228
- $ recipients = new Recipients ();
229
- $ this ->recipients = $ recipients ->loadFromArray ($ this ->recipients );
228
+ if (!empty ($ this ->recipients ->items )) {
229
+ foreach ($ this ->recipients ->items AS &$ item ) {
230
+ $ Recipient = new Recipient ();
231
+ $ Recipient ->loadFromArray ($ item );
232
+
233
+ $ item = $ Recipient ;
234
+ }
235
+ }
230
236
231
237
return $ this ;
232
238
}
Original file line number Diff line number Diff line change @@ -35,28 +35,4 @@ class Recipient extends Base
35
35
* @var string
36
36
*/
37
37
public $ statusDatetime ;
38
-
39
- /**
40
- * @return int
41
- */
42
- public function getRecipient ()
43
- {
44
- return $ this ->recipient ;
45
- }
46
-
47
- /**
48
- * @return string
49
- */
50
- public function getStatus ()
51
- {
52
- return $ this ->status ;
53
- }
54
-
55
- /**
56
- * @return string
57
- */
58
- public function getStatusDatetime ()
59
- {
60
- return $ this ->statusDatetime ;
61
- }
62
38
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments