You are here

class OrderStatusUpdateEvent in Ubercart 8.4

Event that is fired when an order's status is changed.

Hierarchy

Expanded class hierarchy of OrderStatusUpdateEvent

1 file declares its use of OrderStatusUpdateEvent
Order.php in uc_order/src/Entity/Order.php

File

uc_order/src/Event/OrderStatusUpdateEvent.php, line 11

Namespace

Drupal\uc_order\Event
View source
class OrderStatusUpdateEvent extends Event {
  const EVENT_NAME = 'uc_order_status_update';

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

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
OrderStatusUpdateEvent::$order public property The new order.
OrderStatusUpdateEvent::$original_order public property The original order.
OrderStatusUpdateEvent::EVENT_NAME constant
OrderStatusUpdateEvent::__construct public function Constructs the object.