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

class OrderCancelledNotificationEvent extends AbstractOrderNotificationEvent {

	protected function _notificationEventInfo() {
		return array(
			'label'            => _x( 'Order cancelled', 'notification event', 'directories-pro' ),
			'default_settings' => array(),
			'actions'          => array(
				'payment_order_cancelled',
			),
			'weight'           => 20,
		);
	}

	protected function _getDefaultNotificationLabel() {
		return __( 'Your order has been cancelled', 'directories-pro' );
	}

	protected function _getDefaultNotificationBody() {
		return array(
			__( 'The following order has been cancelled.', 'directories-pro' ),
			sprintf( __( 'Order number: %s', 'directories-pro' ), '%order_number%' ),
			sprintf( __( 'Order plan: %s', 'directories-pro' ), '%order_name%' ),
		);
	}
}
