<?php

namespace App\Enums;

enum AustralianState: int
{
    case NSW = 1;
    case VIC = 2;
    case QLD = 3;
    case SA = 4;
    case WA = 5;
    case TAS = 6;
    case NT = 7;
    case ACT = 8;

    public function label(): string
    {
        return match ($this) {
            self::NSW => 'New South Wales',
            self::VIC => 'Victoria',
            self::QLD => 'Queensland',
            self::SA => 'South Australia',
            self::WA => 'Western Australia',
            self::TAS => 'Tasmania',
            self::NT => 'Northern Territory',
            self::ACT => 'Australian Capital Territory',
        };
    }

    public function abbreviation(): string
    {
        return match ($this) {
            self::NSW => 'NSW',
            self::VIC => 'VIC',
            self::QLD => 'QLD',
            self::SA => 'SA',
            self::WA => 'WA',
            self::TAS => 'TAS',
            self::NT => 'NT',
            self::ACT => 'ACT',
        };
    }
}
