<?php

namespace App\Enums;

enum CaseLayer: string
{
    case Generic        = 'generic';         // Applies to any business
    case SectorSpecific = 'sector_specific'; // Written for a specific industry

    public function label(): string
    {
        return match($this) {
            CaseLayer::Generic        => 'Generic',
            CaseLayer::SectorSpecific => 'Sector Specific',
        };
    }

    public function labelAr(): string
    {
        return match($this) {
            CaseLayer::Generic        => 'عام',
            CaseLayer::SectorSpecific => 'خاص بقطاع',
        };
    }

    public static function values(): array
    {
        return array_column(self::cases(), 'value');
    }
}
