Skip to content

Commit

Permalink
Add ability to retrieve customData for groupMember
Browse files Browse the repository at this point in the history
I think the data we are using is not generic so provide access to non-generic data
  • Loading branch information
eileenmcnaughton committed Jul 17, 2017
1 parent c48de44 commit cd3933b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Responses/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function getOptOutIsoDateTime() {
* @return mixed
*/
public function getOptInSource() {
return $this->data['opt_in_details'];
return (string) $this->data['opt_in_details'];
}

/**
Expand Down Expand Up @@ -136,6 +136,10 @@ public function setContactReference($contactReference) {
$this->contactReference = $contactReference;
}

public function getCustomData($key) {
return (string) $this->data[$key];
}

/**
* @var SilverpopConnector
*/
Expand Down

0 comments on commit cd3933b

Please sign in to comment.