update
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums\WebDesign;
|
||||
|
||||
enum WebDesignQuoteStatus: string
|
||||
{
|
||||
case DRAFT = 'draft';
|
||||
case SENT = 'sent';
|
||||
case ACCEPTED = 'accepted';
|
||||
case REJECTED = 'rejected';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::DRAFT => 'Nháp',
|
||||
self::SENT => 'Đã gửi khách',
|
||||
self::ACCEPTED => 'Khách đồng ý',
|
||||
self::REJECTED => 'Khách từ chối',
|
||||
};
|
||||
}
|
||||
|
||||
public static function values(): array
|
||||
{
|
||||
return array_column(self::cases(), 'value');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user