<?php

namespace App\Enums;

enum HoldingType: string
{
    case Stock = 'stock';
    case Bond = 'bond';
    case MutualFund = 'mutual_fund';
    case ETF = 'etf';
    case Index = 'index';

    public function label(): string
    {
        return match ($this) {
            self::Stock => 'Stock',
            self::Bond => 'Bond',
            self::MutualFund => 'Mutual Fund',
            self::ETF => 'ETF',
            self::Index => 'Index Fund',
        };
    }
}
