From e542367fe8becca4be206a1e5fe16b0e9cb17839 Mon Sep 17 00:00:00 2001 From: Takayuki Miyoshi Date: Sat, 11 Feb 2023 17:45:12 +0900 Subject: [PATCH] Update mail.php #525 --- includes/mail.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/includes/mail.php b/includes/mail.php index 2468fd36..87fa05be 100644 --- a/includes/mail.php +++ b/includes/mail.php @@ -35,6 +35,14 @@ public static function send( $template, $name = '' ) { return self::$current->compose(); } + + /** + * The constructor method. + * + * @param string $name The name of the email template. + * Such as 'mail' or 'mail_2'. + * @param array $template Array of email template. + */ private function __construct( $name, $template ) { $this->name = trim( $name ); $this->use_html = ! empty( $template['use_html'] ); @@ -55,6 +63,10 @@ private function __construct( $name, $template ) { } } + + /** + * Returns the name of the email template. + */ public function name() { return $this->name; }