<?php

namespace App\Tests\Domain\Scraping\Adapter;

use App\Domain\Scraping\Domain\Contract\Service\ImageStorageInterface;

class InMemoryImageStorage implements ImageStorageInterface
{
    /** @var array<string, string> chapterId => pagesDirectory */
    public array $stored = [];

    public function storeChapterImages(string $chapterId, array $localImagePaths): string
    {
        $dir = '/fake/pages/' . $chapterId;
        $this->stored[$chapterId] = $dir;

        return $dir;
    }
}
