<?php

declare(strict_types=1);

namespace App\Application\LiveComponents\ValueObjects;

/**
 * MetricTrend - Trend direction for metrics
 */
enum MetricTrend: string
{
    case UP = 'up';
    case DOWN = 'down';
    case STABLE = 'stable';

    public function getIcon(): string
    {
        return match ($this) {
            self::UP => '↗',
            self::DOWN => '↘',
            self::STABLE => '→'
        };
    }

    public function getClass(): string
    {
        return "trend-{$this->value}";
    }
}
