ForcedOfflineEvent.php 804 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of qbhy/hyperf-auth.
  5. *
  6. * @link https://github.com/qbhy/hyperf-auth
  7. * @document https://github.com/qbhy/hyperf-auth/blob/master/README.md
  8. * @contact qbhy0715@qq.com
  9. * @license https://github.com/qbhy/hyperf-auth/blob/master/LICENSE
  10. */
  11. namespace Qbhy\HyperfAuth\Events;
  12. use Qbhy\HyperfAuth\Authenticatable;
  13. /**
  14. * 被迫下线事件
  15. * Class ForcedOfflineEvent.
  16. */
  17. class ForcedOfflineEvent
  18. {
  19. /**
  20. * 用户实例.
  21. */
  22. public Authenticatable $user;
  23. /**
  24. * 客户端标识.
  25. */
  26. public string $client;
  27. /**
  28. * ForcedOfflineEvent constructor.
  29. */
  30. public function __construct(Authenticatable $user, string $client)
  31. {
  32. $this->user = $user;
  33. $this->client = $client;
  34. }
  35. }