You are here

public function PaymentDeclinedMail::__construct in Commerce Recurring Framework 8

Constructs a new PaymentDeclinedMail object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\commerce\MailHandlerInterface $mail_handler: The mail handler.

\Drupal\commerce_order\OrderTotalSummaryInterface $order_total_summary: The order total summary.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

File

src/Mail/PaymentDeclinedMail.php, line 60

Class

PaymentDeclinedMail
Sends an email when the payment is declined for a recurring order.

Namespace

Drupal\commerce_recurring\Mail

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, MailHandlerInterface $mail_handler, OrderTotalSummaryInterface $order_total_summary, TimeInterface $time) {
  $this->entityTypeManager = $entity_type_manager;
  $this->mailHandler = $mail_handler;
  $this->orderTotalSummary = $order_total_summary;
  $this->time = $time;
}