SortEnum.php 398 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace common\enums;
  3. /**
  4. * Class SortEnum
  5. * @package common\enums
  6. * @author jianyan74 <751393839@qq.com>
  7. */
  8. class SortEnum extends BaseEnum
  9. {
  10. const DESC = 'desc';
  11. const ASC = 'asc';
  12. /**
  13. * @return array
  14. */
  15. public static function getMap(): array
  16. {
  17. return [
  18. self::DESC => '降序',
  19. self::ASC => '升序',
  20. ];
  21. }
  22. }
粤ICP备19079148号