Files
piratepoet/lib/Mailer/SubscriberError.php
Pavel Dohnal cdda3480ca Make all constructor signatures multiline
[MAILPOET-3732]
2021-09-16 14:19:40 +02:00

43 lines
669 B
PHP

<?php
namespace MailPoet\Mailer;
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;
}
}