File "BlacklistErrorMapperTrait.php"
Full Path: /home/warrior1/public_html/wp-content/plugins/mailpoet/lib/Mailer/Methods/ErrorMappers/BlacklistErrorMapperTrait.php
File size: 575 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace MailPoet\Mailer\Methods\ErrorMappers;
if (!defined('ABSPATH')) exit;
use MailPoet\Mailer\MailerError;
use MailPoet\Mailer\SubscriberError;
trait BlacklistErrorMapperTrait {
public function getBlacklistError($subscriber) {
// translators: %s is the name of the method.
$message = sprintf(__('%s has returned an unknown error.', 'mailpoet'), self::METHOD);
$subscriberErrors = [new SubscriberError($subscriber, null)];
return new MailerError(MailerError::OPERATION_SEND, MailerError::LEVEL_SOFT, $message, null, $subscriberErrors);
}
}