value}"); } public function getColor(): string { return match ($this) { self::Open => 'success', self::Filled => 'info', self::Closed => 'gray', }; } /** @return array */ public static function options(): array { return collect(self::cases()) ->mapWithKeys(fn (self $case) => [$case->value => $case->getLabel()]) ->all(); } }