<?php

namespace App\Domain\Scraping\Domain\Contract\Repository;

use App\Domain\Scraping\Domain\Model\Manga;

interface MangaRepositoryInterface
{
    public function getById(string $id): ?Manga;

    /**
     * Update the preferred sources for a manga in the specified order
     *
     * @param string $mangaId
     * @param array $sourceIds Array of source IDs in preferred order
     * @return void
     */
    public function updatePreferredSources(string $mangaId, array $sourceIds): void;
}
