1
0

TicketStatuses.php 523 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace App\Enums;
  3. class TicketStatuses extends AbstractEnum {
  4. public const NEW = 0;
  5. public const IN_PROGRESS = 1;
  6. public const INFORMATION_REQUESTED = 2;
  7. public const ON_HOLD = 3;
  8. public const SOLVED = 4;
  9. public const CLOSED = 5;
  10. public static function options(): array {
  11. return [
  12. self::NEW => "New",
  13. self::IN_PROGRESS => "In Progress",
  14. self::INFORMATION_REQUESTED => "Information Requested",
  15. self::ON_HOLD => "On Hold",
  16. self::SOLVED => "Solved",
  17. self::CLOSED => "Closed",
  18. ];
  19. }
  20. }