File "ConnectionErrorMapperTrait.php"

Full Path: /home/warrior1/public_html/languages/wp-content-20241001222009/plugins/mailpoet/lib/Mailer/Methods/ErrorMappers/ConnectionErrorMapperTrait.php
File size: 332 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

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
    );
  }
}