You are here

OrderStatusEmailUpdateEvent.php in Ubercart 8.4

File

uc_order/src/Event/OrderStatusEmailUpdateEvent.php
View source
<?php

namespace Drupal\uc_order\Event;

use Drupal\uc_order\OrderInterface;
use Symfony\Component\EventDispatcher\Event;

/**
 * Event indicating an email notification of order status change was requested.
 */
class OrderStatusEmailUpdateEvent extends Event {
  const EVENT_NAME = 'uc_order_status_email_update';

  /**
   * The order.
   *
   * @var \Drupal\uc_order\OrderInterface
   */
  public $order;

  /**
   * Constructs the object.
   *
   * @param \Drupal\uc_order\OrderInterface $order
   *   The order object.
   */
  public function __construct(OrderInterface $order) {
    $this->order = $order;
  }

}

Classes

Namesort descending Description
OrderStatusEmailUpdateEvent Event indicating an email notification of order status change was requested.