<?php

namespace App\Enums;

enum ChargeBasis: string
{
    case OncePerEvent = 'once_per_event';
    case PerReservationDay = 'per_reservation_day';
    case PerGuest = 'per_guest';
    case PerGuestPerDay = 'per_guest_per_day';
    case PerHour = 'per_hour';
    case PerUnit = 'per_unit';
    case Complimentary = 'complimentary';
    case FixedPackage = 'fixed_package';

    public function label(): string
    {
        return match ($this) {
            self::OncePerEvent => 'Once Per Event',
            self::PerReservationDay => 'Per Reservation Day',
            self::PerGuest => 'Per Guest',
            self::PerGuestPerDay => 'Per Guest Per Day',
            self::PerHour => 'Per Hour',
            self::PerUnit => 'Per Unit',
            self::Complimentary => 'Complimentary',
            self::FixedPackage => 'Fixed Package',
        };
    }
}
