. */ declare(strict_types=1); namespace FireflyIII\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; /** * Class UndoEmailChangeMail * * @codeCoverageIgnore */ class UndoEmailChangeMail extends Mailable { use Queueable, SerializesModels; /** @var string IP address of user */ public $ipAddress; /** @var string New email address */ public $newEmail; /** @var string Old email address */ public $oldEmail; /** @var string URI to undo */ public $uri; /** * UndoEmailChangeMail constructor. * * @param string $newEmail * @param string $oldEmail * @param string $uri * @param string $ipAddress */ public function __construct(string $newEmail, string $oldEmail, string $uri, string $ipAddress) { $this->newEmail = $newEmail; $this->oldEmail = $oldEmail; $this->uri = $uri; $this->ipAddress = $ipAddress; } /** * Build the message. * * @return $this */ public function build(): self { return $this->view('emails.undo-email-change-html')->text('emails.undo-email-change-text') ->subject('Your Firefly III email address has changed'); } }