<?php

namespace Modules\User\Events;

use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;
use Modules\User\Models\Identity;
use Modules\User\Models\User;

class UserRemoveIdentity
{

    use Dispatchable,
        SerializesModels;

    /**
     * 用户模型
     *
     * @var User
     */
    public User $user;

    public Identity $identity;

    /**
     * 创建一个事件的实例
     *
     * @param  User  $user
     * @param  Identity  $identity
     * @return void
     */
    public function __construct(User $user, Identity $identity)
    {
        $this->user     = $user;
        $this->identity = $identity;
    }

}
