Notices final readonly class
Minn\Mail\Notices · public/minn/src/Minn/Mail/Notices.php · 99 lines
The messages the engine itself sends, worded as the reference words them and built in one place, so a controller and a CLI verb that announce the same thing say the same thing.
Constants and properties
| private | readonly string $siteName | Promoted from the constructor. |
| private | readonly string $home | Promoted from the constructor. |
Public
| new | __construct(string $siteName, string $home)# | |
| method | loginDetails(string $login, string $email, string $resetLink): Minn\Mail\Message# | A new account's login details, with a link to choose a password. |
| method | passwordReset(string $login, string $email, string $resetLink, string $requestIp): Minn\Mail\Message# | The password reset link, with the requester's address as the reference prints it. |
| method | moderation(string $adminEmail, string $postTitle, string $author, string $comment): Minn\Mail\Message# | A comment waiting in the queue, announced to the site's address. |
| method | newComment(string $authorEmail, string $postTitle, string $author, string $comment, string $link): Minn\Mail\Message# | An approved comment on a post, announced to the post's author. |
| method | newNote(string $authorEmail, string $postTitle, string $author, string $note, string $editLink): Minn\Mail\Message# | A post's author told of a note on it, with where the post is edited (notes live in the editor). |
Internals 1
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | subject(string $subject): string# | Every notice the reference sends carries the site's name in brackets. |
Nothing matches.