2026-03-05 08:26:51 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace MintyPHP\Repository\Scheduler;
|
|
|
|
|
|
2026-03-13 21:58:51 +01:00
|
|
|
/** Contract for scheduled job run history: creation, pagination, and retention purge. */
|
2026-03-05 08:26:51 +01:00
|
|
|
interface ScheduledJobRunRepositoryInterface
|
|
|
|
|
{
|
|
|
|
|
public function create(array $data): int|false;
|
|
|
|
|
|
|
|
|
|
public function listPagedByJobId(int $jobId, array $filters): array;
|
|
|
|
|
|
|
|
|
|
public function purgeOlderThanDays(int $days): int;
|
|
|
|
|
}
|