<?php

// app/Enums/Gender.php

namespace App\Enums;

enum Gender: string
{
    case FEMALE = 'female';
    case MALE = 'male';
    case PREFER_NOT_TO_SAY = 'prefer_not_to_say';

    public function label(): string
    {
        return match ($this) {
            self::FEMALE => 'Female',
            self::MALE => 'Male',
            self::PREFER_NOT_TO_SAY => 'Prefer not to say',
        };
    }

    public static function options(): array
    {
        return [
            self::FEMALE->value => 'Female',
            self::MALE->value => 'Male',
            self::PREFER_NOT_TO_SAY->value => 'Prefer not to say',
        ];
    }
}
