17 lines
393 B
PHP
17 lines
393 B
PHP
<?php
|
|
|
|
namespace MintyPHP\Service\Mail;
|
|
|
|
use MintyPHP\Repository\Mail\MailLogRepository;
|
|
use MintyPHP\Repository\Mail\MailLogRepositoryInterface;
|
|
|
|
class MailRepositoryFactory
|
|
{
|
|
private ?MailLogRepository $mailLogRepository = null;
|
|
|
|
public function createMailLogRepository(): MailLogRepositoryInterface
|
|
{
|
|
return $this->mailLogRepository ??= new MailLogRepository();
|
|
}
|
|
}
|