'Male', self::Female => 'Female', self::Other => 'Other', }; } public function color(): string { return match ($this) { self::Male => 'info', self::Female => 'pink', self::Other => 'gray', }; } public function icon(): string { return match ($this) { self::Male => 'heroicon-o-user', self::Female => 'heroicon-o-user', self::Other => 'heroicon-o-users', }; } }