Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

364 B
Raw Blame
<?php

namespace HiEvents\DomainObjects\Enums;

enum SubscriptionBillingInterval: string
{
    use BaseEnum;

    case MONTH = 'month';
    case YEAR = 'year';

    public function priceLookupKey(): string
    {
        return match ($this) {
            self::MONTH => 'hi_events_pro_monthly',
            self::YEAR => 'hi_events_pro_yearly',
        };
    }
}