<?php

namespace App\Domain\Pricing\Enums;

enum PricingRuleType: string
{
    case Age = 'age';
    case MembershipDuration = 'membership_duration';
    case FamilySize = 'family_size';
    case SiblingOrder = 'sibling_order';
    case Classification = 'classification';
    case EnrollmentTiming = 'enrollment_timing';
    case EnrollmentVolume = 'enrollment_volume';
    case Seasonal = 'seasonal';
    case Gender = 'gender';
    case Branch = 'branch';
    case DayTime = 'day_time';
    case Loyalty = 'loyalty';
    case Custom = 'custom';

    public function label(): string
    {
        return match ($this) {
            self::Age => 'العمر',
            self::MembershipDuration => 'مدة العضوية',
            self::FamilySize => 'حجم الأسرة',
            self::SiblingOrder => 'ترتيب الأخوة',
            self::Classification => 'التصنيف',
            self::EnrollmentTiming => 'توقيت التسجيل',
            self::EnrollmentVolume => 'حجم التسجيل',
            self::Seasonal => 'موسمي',
            self::Gender => 'الجنس',
            self::Branch => 'الفرع',
            self::DayTime => 'اليوم والوقت',
            self::Loyalty => 'الولاء',
            self::Custom => 'مخصص',
        };
    }
}
