AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

OrderStatus.php 351B

12345678910111213141516171819
  1. <?php
  2. namespace App\Enums;
  3. enum OrderStatus: string
  4. {
  5. /** The shopper started checkout but has not paid (yet). */
  6. case Pending = 'pending';
  7. case Paid = 'paid';
  8. public function label(): string
  9. {
  10. return match ($this) {
  11. self::Pending => 'Awaiting payment',
  12. self::Paid => 'Paid',
  13. };
  14. }
  15. }