<?php

namespace App\Enums;

enum CustomerStatus: string
{
    case Lead = 'LEAD';
    case Customer = 'CUSTOMER';

    /**
     * @return list<string>
     */
    public static function values(): array
    {
        return array_column(self::cases(), 'value');
    }

    public function label(): string
    {
        return match ($this) {
            self::Lead => 'Lead',
            self::Customer => 'Customer',
        };
    }

    public function requiresCompleteProfile(): bool
    {
        return $this === self::Customer;
    }
}
