Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function updateFromResponse(array $response) |
||
37 | { |
||
38 | $this->accountId = $response['account_id']; |
||
39 | $this->id = $response['list_id']; |
||
40 | $this->created = $response['created']; |
||
41 | $this->modified = $response['modified']; |
||
42 | $this->state = $response['state']; |
||
43 | $this->name = $response['name']; |
||
44 | $this->remarks = $response['remarks']; |
||
45 | $this->subscribeNotificationEmail = $response['subscribe_notification_email']; |
||
46 | $this->unsubsribeNotificationEmail = $response['unsubscribe_notification_email']; |
||
47 | $this->numberOfActiveMembers = $response['members']['active']; |
||
48 | $this->numberOfUnsubscribedMembers = $response['members']['unsubscribed']; |
||
49 | $this->numberOfCleanedMembers = $response['members']['cleaned']; |
||
50 | } |
||
51 | } |
||
52 |