private function createList($listId, $listParameters)
    {
        $providerServiceKey = $listParameters['subscriber_provider'];
        $provider = $this->providerFactory->create($providerServiceKey);
        $subscriberList = new SubscriberList($listId, $provider, $listParameters['merge_fields']);
        $subscriberList->setWebhookUrl($listParameters['webhook_url']);
        $subscriberList->setWebhookSecret($listParameters['webhook_secret']);

        return $subscriberList;
    }
private function createList($listId, $listParameters)
    {
        $providerServiceKey = $listParameters['subscriber_provider'];
        $provider = $this->providerFactory->create($providerServiceKey);
        $subscriberList = new SubscriberList($listId, $provider, $listParameters['merge_fields']);
        $subscriberList->setWebhookUrl($listParameters['webhook_url']);
        $subscriberList->setWebhookSecret($listParameters['webhook_secret']);

        return $subscriberList;
    }
private function createList ( $ listId , $ listParameters ) { $ providerServiceKey = $ listParameters [ 'subscriber_provider' ] ; $ provider = $ this -> providerFactory -> create ( $ providerServiceKey ) ; $ subscriberList = new SubscriberList ( $ listId , $ provider , $ listParameters [ 'merge_fields' ] ) ; $ subscriberList -> setWebhookUrl ( $ listParameters [ 'webhook_url' ] ) ; $ subscriberList -> setWebhookSecret ( $ listParameters [ 'webhook_secret' ] ) ; return $ subscriberList ; }
create one SubscriberList
@param string $listId
@param string $listParameters
@return SubscriberList
create one SubscriberList