type = self::TYPE; $this->recipient = $recipient; $this->name = $name; $this->arg1 = $name; } public function getSubject(): string { return "$this->name article has been deleted"; } public function getBody(array $config): string { $base_path = $config["server"]["base_path"]; return "The Wikipedia article about $this->name has been deleted. " . "Death Notifier is now unable to send you a notification if $this->name dies. " . "If the Wikipedia article is ever re-created, Death Notifier will automatically resume tracking this " . "article, and you will receive another notification." . "\n\n" . "You are receiving this message because of the preferences in your Death Notifier account. " . "To unsubscribe from these messages, go to the Death Notifier website, log in, and change your email " . "preferences." . "\n\n" . $base_path; } }