<?php

namespace App\Domain\Scraping\Domain\Model;

use App\Domain\Shared\Domain\Model\Job;

class ScrapingJob extends Job
{
    public function __construct(
        string $id,
        ?string $mangaId = null,
        ?float $chapterNumber = null,
        ?string $sourceId = null
    ) {
        parent::__construct($id, 'scraping_job');
        $this->maxAttempts = 1;
        $this->context = [
            'mangaId' => $mangaId,
            'chapterNumber' => $chapterNumber,
            'sourceId' => $sourceId
        ];
    }
}
