<?php

namespace Modules\Payment\Events;

use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Modules\Payment\Models\Payment;

/**
 * Class Paid
 * 支付完成事件
 *
 * @package Module\Payment\Events
 */
class Paid
{

    use Dispatchable,
        SerializesModels;

    /**
     * 支付订单模型
     *
     * @var \Modules\Payment\Models\Payment
     */
    public Payment $payment;

    /**
     * 创建一个事件的实例
     *
     * @param  \Modules\Payment\Models\Payment  $payment
     * @return void
     */
    public function __construct(Payment $payment)
    {
        $this->payment = $payment;
    }

}