2026-03-04 15:56:58 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace MintyPHP\Service\Mail;
|
|
|
|
|
|
|
|
|
|
use MintyPHP\Repository\Mail\MailLogRepository;
|
2026-03-05 08:26:51 +01:00
|
|
|
use MintyPHP\Repository\Mail\MailLogRepositoryInterface;
|
2026-03-04 15:56:58 +01:00
|
|
|
|
|
|
|
|
class MailRepositoryFactory
|
|
|
|
|
{
|
|
|
|
|
private ?MailLogRepository $mailLogRepository = null;
|
|
|
|
|
|
2026-03-05 08:26:51 +01:00
|
|
|
public function createMailLogRepository(): MailLogRepositoryInterface
|
2026-03-04 15:56:58 +01:00
|
|
|
{
|
|
|
|
|
return $this->mailLogRepository ??= new MailLogRepository();
|
|
|
|
|
}
|
|
|
|
|
}
|