| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- declare(strict_types=1);
- /**
- * This file is part of qbhy/hyperf-auth.
- *
- * @link https://github.com/qbhy/hyperf-auth
- * @document https://github.com/qbhy/hyperf-auth/blob/master/README.md
- * @contact qbhy0715@qq.com
- * @license https://github.com/qbhy/hyperf-auth/blob/master/LICENSE
- */
- namespace Qbhy\HyperfAuth\Events;
- use Qbhy\HyperfAuth\Authenticatable;
- /**
- * 被迫下线事件
- * Class ForcedOfflineEvent.
- */
- class ForcedOfflineEvent
- {
- /**
- * 用户实例.
- */
- public Authenticatable $user;
- /**
- * 客户端标识.
- */
- public string $client;
- /**
- * ForcedOfflineEvent constructor.
- */
- public function __construct(Authenticatable $user, string $client)
- {
- $this->user = $user;
- $this->client = $client;
- }
- }
|