2026-03-05 08:26:51 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace MintyPHP\Repository\Audit;
|
|
|
|
|
|
2026-03-13 21:58:51 +01:00
|
|
|
/** Contract for API request audit log creation, pagination, and retention purge. */
|
2026-03-05 08:26:51 +01:00
|
|
|
interface ApiAuditLogRepositoryInterface
|
|
|
|
|
{
|
|
|
|
|
public function create(array $data): int|false;
|
|
|
|
|
|
|
|
|
|
public function listPaged(array $filters): array;
|
|
|
|
|
|
|
|
|
|
public function listFilterOptions(int $limit = 200): array;
|
|
|
|
|
|
|
|
|
|
public function find(int $id): ?array;
|
|
|
|
|
|
|
|
|
|
public function purgeOlderThanDays(int $days): int;
|
|
|
|
|
}
|