<?php

/**
 * New Subscription Email
 *
 * Sent to customers when their subscription is activated.
 *
 * @package ArraySubs\Features\Emails\Emails
 * @since 1.0.0
 */

namespace ArraySubs\Features\Emails\Emails;

defined('ABSPATH') || exit;

use ArraySubs\Features\Emails\Abstracts\BaseSubscriptionEmail;

/**
 * New Subscription Email class
 */
class NewSubscriptionEmail extends BaseSubscriptionEmail
{
    /**
     * Constructor
     */
    public function __construct()
    {
        $this->id             = 'arraysubs_new_subscription';
        $this->customer_email = true;
        $this->title          = __('[ArraySubs] New Subscription', 'arraysubs');
        $this->description    = __('New subscription emails are sent to customers when their subscription is activated.', 'arraysubs');

        $this->heading        = __('Your subscription is now active!', 'arraysubs');
        $this->subject        = __('[{site_title}] Your subscription #{subscription_id} is active', 'arraysubs');

        $this->template_html  = 'customer-new-subscription.php';
        $this->template_plain = 'plain/customer-new-subscription.php';

        parent::__construct();
    }

    /**
     * Get default additional content
     *
     * @return string
     */
    public function get_default_additional_content(): string
    {
        return __('Thank you for subscribing! If you have any questions, please contact us.', 'arraysubs');
    }
}
