NumericAttributesCast.php 739 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace App\Module\GameItems\Casts;
  3. use Illuminate\Database\Eloquent\Model;
  4. use UCore\Model\CastsAttributes;
  5. class NumericAttributesCast extends CastsAttributes
  6. {
  7. /**
  8. * 宝箱最小数量
  9. *
  10. * @var int $min_drop_count
  11. */
  12. public int $min_drop_count = 0;
  13. /**
  14. * 宝箱最大数量
  15. *
  16. * @var int $max_drop_count
  17. */
  18. public int $max_drop_count = 0;
  19. /**
  20. * 测试属性浮点类型
  21. *
  22. * @var float $fint
  23. */
  24. public float $fint = 0.1;
  25. /**
  26. * 测试属性整数类型
  27. *
  28. * @var int $intd
  29. */
  30. public int $intd = 1;
  31. /**
  32. * 测试属性字符串类型
  33. * @var string $stval
  34. */
  35. public string $stval = ' ';
  36. }