You are here

public function MailchimpEcommerce::addStore in Mailchimp 8

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

@inheritdoc

Overrides MailchimpEcommerce::addStore

File

lib/mailchimp-api-php/tests/src/MailchimpEcommerce.php, line 62

Class

MailchimpEcommerce
Mailchimp Ecommerce library test cases.

Namespace

Mailchimp\Tests

Code

public function addStore($id, $store, $parameters = [], $batch = FALSE) {
  parent::addStore($id, $store, $batch);
  $parameters = [
    'id' => $id,
  ];
  $parameters += $store;
  $this->stores[$id] = (object) $parameters;
}