initial
This commit is contained in:
25
app/Enums/GeneralType.php
Normal file
25
app/Enums/GeneralType.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum GeneralType: string
|
||||
{
|
||||
case Aso = 'Aso';
|
||||
case Hubs = 'Hubs';
|
||||
case Management = 'Management';
|
||||
case Mc = 'Mc';
|
||||
case Other = 'Other';
|
||||
case Research = 'Research';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match($this) {
|
||||
self::Aso => 'ASO',
|
||||
self::Hubs => 'Hubs',
|
||||
self::Management => 'Management',
|
||||
self::Mc => 'MC',
|
||||
self::Other => 'Other',
|
||||
self::Research => 'Research',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user