first commit
This commit is contained in:
17
app/Enums/ReportPeriodStatus.php
Normal file
17
app/Enums/ReportPeriodStatus.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum ReportPeriodStatus: string
|
||||
{
|
||||
case Draft = 'draft';
|
||||
case Approved = 'approved';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match ($this) {
|
||||
self::Draft => 'Черновик',
|
||||
self::Approved => 'Утвержден',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user