<?php

namespace Kylin\Pet\Enums;

/**
 * 宠物物种枚举
 * 遵循 GB/T 45204-2025 分类标准
 */
enum PetSpecies: string
{
    case DOG = 'dog';
    case CAT = 'cat';
    case RABBIT = 'rabbit';
    case BIRD = 'bird';
    case OTHER = 'other';

    public function label(): string
    {
        return match ($this) {
            self::DOG => '犬',
            self::CAT => '猫',
            self::RABBIT => '兔',
            self::BIRD => '鸟',
            self::OTHER => '其他',
        };
    }

    public function icon(): string
    {
        return match ($this) {
            self::DOG => '🐕',
            self::CAT => '🐱',
            self::RABBIT => '🐰',
            self::BIRD => '🐦',
            self::OTHER => '🐾',
        };
    }
}
