RecipeDisplayAttributesCast.php 620 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Module\GameItems\Casts;
  3. use UCore\Model\CastsAttributes;
  4. /**
  5. * 合成配方展示属性类型转换器
  6. *
  7. * 用于将数据库中存储的JSON格式的合成配方展示属性转换为PHP对象,以及将PHP对象转换回JSON格式。
  8. * 展示属性包含用于界面展示的属性,如图标路径、颜色、描述等。
  9. */
  10. class RecipeDisplayAttributesCast extends CastsAttributes
  11. {
  12. /**
  13. * 图标路径
  14. *
  15. * @var string $icon
  16. */
  17. public string $icon = '';
  18. /**
  19. * 分类
  20. *
  21. * @var string $category
  22. */
  23. public string $category = '';
  24. }