<?php
declare(strict_types=1);

namespace ROITheme\Admin\CustomCSSManager\Application\UseCases;

use ROITheme\Shared\Domain\Contracts\CSSSnippetRepositoryInterface;

/**
 * Caso de uso: Eliminar snippet CSS
 *
 * SRP: Solo responsable de orquestar la eliminación
 */
final class DeleteSnippetUseCase
{
    public function __construct(
        private readonly CSSSnippetRepositoryInterface $repository
    ) {}

    /**
     * Ejecuta la eliminación del snippet
     *
     * @param string $snippetId ID del snippet a eliminar
     * @return void
     */
    public function execute(string $snippetId): void
    {
        $this->repository->delete($snippetId);
    }
}
