Make Enum

Make by name

$monday = WeekDayEnum::make('monday');
$monday = WeekDayEnum::monday();

Make by value

$monday = WeekDayEnum::make('Montag');

Make by index

$monday = WeekDayEnum::make(1);

Get all

WeekDayEnum::getAll(); // returns an array of `WeekDayEnum` instances