initial
This commit is contained in:
21
app/Enums/EventType.php
Normal file
21
app/Enums/EventType.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Enums;
|
||||
|
||||
enum EventType: string
|
||||
{
|
||||
case AnnualInPersonMeeting = 'AnnualInPersonMeeting';
|
||||
case Conference = 'Conference';
|
||||
case Osces = 'Osces';
|
||||
case ResearchRetreat = 'ResearchRetreat';
|
||||
|
||||
public function label(): string
|
||||
{
|
||||
return match($this) {
|
||||
self::AnnualInPersonMeeting => 'Annual In-Person Meeting',
|
||||
self::Conference => 'Conference',
|
||||
self::Osces => 'OSCEs',
|
||||
self::ResearchRetreat => 'Research Retreat',
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user