<?php

declare(strict_types=1);

namespace App\Administration\Domain\Repository;

use App\Administration\Domain\Model\Import\ImportBatchId;
use App\Administration\Domain\Model\Import\StudentImportBatch;
use App\Shared\Domain\Tenant\TenantId;

interface ImportBatchRepository
{
    public function save(StudentImportBatch $batch): void;

    public function get(ImportBatchId $id): StudentImportBatch;

    public function findById(ImportBatchId $id): ?StudentImportBatch;

    /**
     * @return list<StudentImportBatch>
     */
    public function findByTenant(TenantId $tenantId): array;
}
