User.php 402 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Module\User\Unit;
  3. class User
  4. {
  5. /**
  6. * 用户ID
  7. * @var int
  8. */
  9. public int $id;
  10. /**
  11. * 密码hash
  12. * @var string
  13. */
  14. public string $password;
  15. /**
  16. *
  17. * @param $id
  18. * @param $password
  19. */
  20. public function __construct($id, $password = '')
  21. {
  22. $this->id = $id;
  23. $this->password = $password;
  24. }
  25. }