<?php

namespace MintyPHP\Repository\Scheduler;

/** Contract for scheduled job run history: creation, pagination, and retention purge. */
interface ScheduledJobRunRepositoryInterface
{
    public function create(array $data): int|false;

    public function listPagedByJobId(int $jobId, array $filters): array;

    public function purgeOlderThanDays(int $days): int;
}
