domain->getLdhName(); $this->subject("Error: Domain Deleted $ldhName") ->content("Domain name $ldhName has been deleted from WHOIS.") ->importance(Notification::IMPORTANCE_URGENT); return ChatMessage::fromNotification($this); } public function asPushMessage(?RecipientInterface $recipient = null, ?string $transport = null): ?PushMessage { $ldhName = $this->domain->getLdhName(); $this->subject("Error: Domain Deleted $ldhName") ->content("Domain name $ldhName has been deleted from WHOIS.") ->importance(Notification::IMPORTANCE_URGENT); return PushMessage::fromNotification($this); } public function asEmailMessage(EmailRecipientInterface $recipient): EmailMessage { $ldhName = $this->domain->getLdhName(); return new EmailMessage((new TemplatedEmail()) ->from($this->sender) ->to($recipient->getEmail()) ->subject("Domain name $ldhName has been removed from WHOIS") ->htmlTemplate('emails/errors/domain_deleted.html.twig') ->locale('en') ->context([ 'domain' => $this->domain, ])); } }