<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing namespace MailPoet\Mailer; if (!defined('ABSPATH')) exit; class SubscriberError { /** @var string */ private $email; /** @var string|null */ private $message; /** * @param string $email * @param string $message|null */ public function __construct( $email, $message = null ) { $this->email = $email; $this->message = $message; } /** * @return string */ public function getEmail() { return $this->email; } /** * @return null|string */ public function getMessage() { return $this->message; } public function __toString() { return $this->message ? $this->email . ': ' . $this->message : $this->email; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Methods | Folder | 0755 |
|
|
WordPress | Folder | 0755 |
|
|
Mailer.php | File | 2.65 KB | 0644 |
|
MailerError.php | File | 2.53 KB | 0644 |
|
MailerFactory.php | File | 5.67 KB | 0644 |
|
MailerLog.php | File | 12.62 KB | 0644 |
|
MetaInfo.php | File | 2.41 KB | 0644 |
|
SubscriberError.php | File | 792 B | 0644 |
|
index.php | File | 6 B | 0644 |
|