<?php

namespace Modules\User\Events;

use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Modules\User\Models\Order;

class UserOrderPaid implements ShouldQueue
{

    use Dispatchable,
        SerializesModels;

    public Order $order;

    /**
     * UserOrderPaid 开通身份.
     *
     * @param  Order  $order
     */
    public function __construct(Order $order)
    {
        info('UserOrderPaid');
        $this->order = $order;
    }

}
