You are here

public function MailchimpLists::getSegment in Mailchimp 8

Same name in this branch
  1. 8 lib/mailchimp-api-php/src/MailchimpLists.php \Mailchimp\MailchimpLists::getSegment()
  2. 8 lib/mailchimp-api-php/tests/src/MailchimpLists.php \Mailchimp\Tests\MailchimpLists::getSegment()

@inheritdoc

Overrides MailchimpLists::getSegment

File

lib/mailchimp-api-php/tests/src/MailchimpLists.php, line 241

Class

MailchimpLists
Mailchimp Lists library test cases.

Namespace

Mailchimp\Tests

Code

public function getSegment($list_id, $segment_id, $parameters = []) {
  parent::getSegment($list_id, $segment_id, $parameters);
  $response = (object) [
    'id' => 49377,
    'name' => 'Test Segment One',
    'type' => 'static',
    'list_id' => $list_id,
  ];
  return $response;
}