2026-03-05 08:26:51 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace MintyPHP\Repository\Mail;
|
|
|
|
|
|
2026-03-13 21:58:51 +01:00
|
|
|
/** Contract for outgoing email log creation, status updates, and paginated listing. */
|
2026-03-05 08:26:51 +01:00
|
|
|
interface MailLogRepositoryInterface
|
|
|
|
|
{
|
|
|
|
|
public function create(array $data): ?int;
|
|
|
|
|
|
|
|
|
|
public function markSent(int $id, ?string $providerMessageId = null): bool;
|
|
|
|
|
|
|
|
|
|
public function markFailed(int $id, string $errorMessage): bool;
|
|
|
|
|
|
|
|
|
|
public function listPaged(array $options): array;
|
|
|
|
|
|
|
|
|
|
public function find(int $id): ?array;
|
|
|
|
|
}
|