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 ⭐️

307 B
Raw Blame
<?php

namespace HiEvents\DomainObjects\Enums;

enum ProductQuantityAppliesTo
{
    use BaseEnum;

    case OCCURRENCE;
    case EVENT;

    public static function defaultFor(ProductType $productType): self
    {
        return $productType === ProductType::TICKET ? self::OCCURRENCE : self::EVENT;
    }
}