type = self::TYPE; $this->recipient = $recipient; $this->name = $name; $this->arg1 = $name; $this->new_status = $new_status; $this->arg2 = $new_status; } public function getSubject(): string { return "$this->name may be $this->new_status"; } public function getBody(array $config): string { $base_path = $config["server"]["base_path"]; return "Someone has edited Wikipedia to state that $this->name is $this->new_status. " . "For more information, read their Wikipedia article at " . "https://en.wikipedia.org/wiki/" . rawurlencode($this->name) . "\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; } }