/** * * @since 2.0.0 * * @param Prompt_Email_Batch $batch * @param Prompt_Interface_Http_Client|null $client * @param PHPMailer|null $local_mailer * @param int $chunk */ public function __construct(Prompt_Email_Batch $batch, Prompt_Interface_Http_Client $client = null, PHPMailer $local_mailer = null, $chunk = 0) { parent::__construct($batch, $client); $this->chunk = $chunk; $this->handlebars = new Prompt_Handlebars(); $this->local_mailer = $local_mailer ? $local_mailer : $this->get_phpmailer(); }
/** * @since 2.0.0 * * @param Prompt_Subscription_Agreement_Email_Batch $batch * @param Prompt_Interface_Http_Client $client */ public function __construct(Prompt_Subscription_Agreement_Email_Batch $batch, Prompt_Interface_Http_Client $client = null) { parent::__construct($batch, $client); }
/** * @since 2.0.0 * * @param Prompt_Comment_Email_Batch $batch * @param Prompt_Interface_Http_Client $client */ public function __construct(Prompt_Comment_Email_Batch $batch, Prompt_Interface_Http_Client $client = null) { parent::__construct($batch, $client); $this->comment = $batch->get_comment(); }