Repo Interface für tests
This commit is contained in:
@@ -6,7 +6,7 @@ use MintyPHP\Domain\Taxonomy\MailLogStatus;
|
||||
use MintyPHP\DB;
|
||||
use MintyPHP\Repository\Support\RepoQuery;
|
||||
|
||||
class MailLogRepository
|
||||
class MailLogRepository implements MailLogRepositoryInterface
|
||||
{
|
||||
public function create(array $data): ?int
|
||||
{
|
||||
|
||||
16
lib/Repository/Mail/MailLogRepositoryInterface.php
Normal file
16
lib/Repository/Mail/MailLogRepositoryInterface.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace MintyPHP\Repository\Mail;
|
||||
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user