Source
public function setCampaignDefaults($name, $email, $subject, $language = 'en')
<?php
/**
* Created by Vextras.
*
* Name: Ryan Hungate
* Email: ryan@vextras.com
* Date: 7/8/16
* Time: 4:16 PM
*/
class MailChimp_WooCommerce_CreateListSubmission
{
/**
* @var array
*/
protected $props = array();
/**
* @param $name
* @return $this
*/
public function setName($name)
{
$this->props['name'] = $name;
return $this;
}
/**
* @param $bool
* @return $this
*/
public function setUseArchiveBar($bool)
{
$this->props['use_archive_bar'] = (bool) $bool;
return $this;
}
/**
* @param $reminder
* @return $this
*/
public function setPermissionReminder($reminder)
{
$this->props['permission_reminder'] = $reminder;
return $this;
}
/**
* @param $email
* @return $this
*/
public function setNotifyOnSubscribe($email)
{
$this->props['notify_on_subscribe'] = $email;
return $this;
}
/**
* @param string $email