<?php

/**
 * Subscription On Hold Email
 *
 * Sent to customers when their subscription is put on hold.
 *
 * @package ArraySubs\Features\Emails\Emails
 * @since 1.0.0
 */

namespace ArraySubs\Features\Emails\Emails;

defined('ABSPATH') || exit;

use ArraySubs\Features\Emails\Abstracts\BaseSubscriptionEmail;

/**
 * Subscription On Hold Email class
 */
class SubscriptionOnHoldEmail extends BaseSubscriptionEmail
{
    /**
     * Constructor
     */
    public function __construct()
    {
        $this->id             = 'arraysubs_subscription_on_hold';
        $this->customer_email = true;
        $this->title          = __('[ArraySubs] Subscription On Hold', 'arraysubs');
        $this->description    = __('Subscription on hold emails are sent to customers when their subscription is put on hold.', 'arraysubs');

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

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

        parent::__construct();
    }

    /**
     * Get default additional content
     *
     * @return string
     */
    public function get_default_additional_content(): string
    {
        return __('Your subscription has been put on hold. This may be due to a payment issue. Please update your payment method to reactivate your subscription.', 'arraysubs');
    }
}
