<?php

namespace App\Modules\Package\Domain;

use App\Modules\Shared\Domain\ValueObject\EnumValueObject;

class PackageServicePassengerStatus extends EnumValueObject
{

    public const CANCELLED = 0;
    public const PENDING = 1;
    public const PURCHASED = 2;
    public const UNKNOWN = 3;
    
    public static function values(): array
    {
        return [ self::CANCELLED, self::PENDING, self::PURCHASED, self::UNKNOWN ];
    }
    public static function label(int $value): string
    {
        return match ($value) {
            self::CANCELLED => 'CANCELADO',
            self::PENDING => 'PENDIENTE',
            self::PURCHASED => 'COMPRADO',
            default => 'DESCONOCIDO',
        };
    }
}
