Skip to content

Commit

Permalink
Merge pull request #10 from gmorel/feature/declare_client_list_field
Browse files Browse the repository at this point in the history
Lead Client `lists` field to have an explicit visibility
  • Loading branch information
shouze committed Feb 12, 2015
2 parents 8936177 + 8ea8f74 commit ca897dd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Api/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ class Client extends \Mailchimp
*/
public $errorCode;

/**
* @var \Mailchimp_Lists
* @deprecated Prefer using Client::getMailChimpLists()
*/
public $lists;

/**
* Constructor
*
Expand Down Expand Up @@ -143,4 +149,14 @@ public function getLastErrorCode()
{
return $this->errorCode;
}

/**
* Allow to send email in batch
*
* @return \Mailchimp_Lists
*/
public function getMailChimpLists()
{
return $this->lists;
}
}

0 comments on commit ca897dd

Please sign in to comment.