store/app/Enums/OrderChannel.php

24 lines
410 B
PHP

<?php
namespace App\Enums;
use App\Traits\ProvidesEnumOptions;
enum OrderChannel: string
{
use ProvidesEnumOptions;
case STORE = 'store';
case SHOPEE = 'shopee';
case TIKTOK = 'tiktok';
public function label(): string
{
return match ($this) {
self::STORE => 'Toko',
self::SHOPEE => 'Shopee',
self::TIKTOK => 'TikTok',
};
}
}