<?php
namespace SabaiApps\Directories\Component\Payment\NotificationEvent;

class SubscriptionExpiredNotificationEvent extends AbstractSubscriptionNotificationEvent {

	protected function _notificationEntityEventInfo() {
		return array(
			'label'            => _x( 'Subscription expired', 'notification event', 'directories-pro' ) . ' - %s',
			'default_settings' => array(),
			'actions'          => array(
				'payment_subscription_expired',
			),
			'weight'           => 25,
		);
	}

	protected function _getDefaultNotificationLabel() {
		return __( 'Your subscription has expired', 'directories-pro' );
	}

	protected function _getDefaultNotificationBody() {
		return array(
			sprintf(
				__( 'Your subscription for the following %1$s  has expired.', 'directories-pro' ),
				strtolower( $singular = $this->_getContentTypeLabel() ),
				$singular
			),
			'%title%' . PHP_EOL . '%permalink_url%',
		);
	}
}
