<?php

declare(strict_types=1);

namespace App\Administration\Infrastructure\Storage;

use App\Administration\Application\Port\ImageProcessor;
use Override;

/**
 * Fake image processor pour les tests.
 * Retourne un contenu PNG factice sans traitement réel.
 */
final class InMemoryImageProcessor implements ImageProcessor
{
    #[Override]
    public function resize(string $sourcePath, int $maxWidth, int $maxHeight): string
    {
        return file_get_contents($sourcePath) ?: '';
    }
}
