ShopRequestStatus.php 799 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Enum\Shop;
  4. use App\Enum\EnumMethodsTrait;
  5. /**
  6. * Statuts d'une ShopRequest.
  7. *
  8. * This enum defines the possible statuses for a shop request:
  9. * - PENDING: Initial status when the request is created
  10. * - ACTIVATION_LINK_SENT: Status when the activation link has been sent to the user
  11. * - VALIDATED: Status when the user has validated the request by clicking the activation link
  12. * - COMPLETED: Status when the request has been fully processed
  13. * - ERROR: Status when an error occurred during processing
  14. */
  15. enum ShopRequestStatus: string
  16. {
  17. use EnumMethodsTrait;
  18. case PENDING = 'PENDING';
  19. case ACTIVATION_LINK_SENT = 'ACTIVATION_LINK_SENT';
  20. case VALIDATED = 'VALIDATED';
  21. case COMPLETED = 'COMPLETED';
  22. case ERROR = 'ERROR';
  23. }