<?php

declare(strict_types=1);

namespace ReallySimplePlugins\RSS\Core\Features\Vulnerability\Services;

/**
 * Maps vulnerability-related values to human-readable presentation labels.
 *
 * Constraints: Contains presentation logic only; no persistence or business rules.
 */
final class VulnerabilityPresentationService
{
    /**
     * Returns a translated label for a vulnerability severity value.
     */
    public function getLabelForSeverity(string $severity): string
    {

        switch (strtolower($severity)) {
            case 'critical':
                return __('Critical', 'really-simple-ssl');
            case 'high':
                return __('High', 'really-simple-ssl');
            case 'medium':
                return __('Medium', 'really-simple-ssl');
            case 'low':
            default:
                return __('Low', 'really-simple-ssl');
        }
    }
}
