/** * @return array */ protected function getArguments() { return ['cid' => $this->campaign->getOriginId(), 'opts' => ['start' => (int) $this->offset / $this->batchSize, 'limit' => $this->batchSize]]; }
/** * Creates iterator of member activities for campaign * * @param Campaign $campaign * @return \Iterator */ protected function createResultIterator(Campaign $campaign) { $parameters = $this->parameters; $parameters['id'] = $campaign->getOriginId(); return $this->createExportIterator(MailChimpClient::EXPORT_CAMPAIGN_SUBSCRIBER_ACTIVITY, $parameters); }