18 lines
426 B
PHP
18 lines
426 B
PHP
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
|
|
|
|
namespace MailPoet\Mailer\Methods\ErrorMappers;
|
|
|
|
if (!defined('ABSPATH')) exit;
|
|
|
|
|
|
use MailPoet\Mailer\MailerError;
|
|
|
|
trait ConnectionErrorMapperTrait {
|
|
public function getConnectionError($message) {
|
|
return new MailerError(
|
|
MailerError::OPERATION_CONNECT,
|
|
MailerError::LEVEL_HARD,
|
|
$message
|
|
);
|
|
}
|
|
}
|