mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 20:47:15 +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);
|
|
}
|
|
}
|