mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-30 16:40:28 +01:00
22 lines
492 B
PHP
22 lines
492 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Xentral\Components\MailClient;
|
||
|
|
||
|
use Xentral\Components\MailClient\Client\ImapMailClient;
|
||
|
use Xentral\Components\MailClient\Config\ImapMailClientConfigInterface;
|
||
|
|
||
|
final class MailClientFactory
|
||
|
{
|
||
|
/**
|
||
|
* @param ImapMailClientConfigInterface $config
|
||
|
*
|
||
|
* @return ImapMailClient
|
||
|
*/
|
||
|
public function createImapClient(ImapMailClientConfigInterface $config): ImapMailClient
|
||
|
{
|
||
|
return new ImapMailClient($config);
|
||
|
}
|
||
|
}
|