You are here

public function MailchimpEcommerce::getCustomer in Mailchimp 8

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

@inheritdoc

Overrides MailchimpEcommerce::getCustomer

File

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

Class

MailchimpEcommerce
Mailchimp Ecommerce library test cases.

Namespace

Mailchimp\Tests

Code

public function getCustomer($store_id, $customer_id, $parameters = []) {
  parent::getCustomer($store_id, $customer_id, $parameters);
  if (isset($this->customers[$store_id])) {
    return isset($this->customers[$store_id][$customer_id]) ? $this->customers[$store_id][$customer_id] : NULL;
  }
  return NULL;
}