<?php

namespace Modules\Mall\Events;

use Illuminate\Queue\SerializesModels;
use Modules\Mall\Models\Order;

class OrderEvent
{

    use SerializesModels;

    /**
     * @var \Modules\Mall\Models\Order
     */
    public Order $order;

    /**
     * 创建事件实例，传播订单模型
     * @param  \Modules\Mall\Models\Order  $order
     */
    public function __construct(Order $order)
    {
        $this->order = $order;
    }

}