Update source into github
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums\Invoice;
|
||||
|
||||
enum InvoiceStatus: int
|
||||
{
|
||||
case UNPAID = 1;
|
||||
case PAID = 2;
|
||||
case CANCELLED = 3;
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::UNPAID => 'Chưa thanh toán',
|
||||
self::PAID => 'Đã thanh toán',
|
||||
self::CANCELLED => 'Đã hủy',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user