AddonTypeEnum.php 442 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace common\enums;
  3. /**
  4. * Class AddonTypeEnum
  5. * @package common\enums
  6. * @author jianyan74 <751393839@qq.com>
  7. */
  8. class AddonTypeEnum extends BaseEnum
  9. {
  10. const DEFAULT = 'default';
  11. const ADDONS = 'addons';
  12. /**
  13. * @return string[]
  14. */
  15. public static function getMap(): array
  16. {
  17. return [
  18. self::DEFAULT => '系统菜单',
  19. self::ADDONS => '插件菜单',
  20. ];
  21. }
  22. }
粤ICP备19079148号