Skip to content

Commit

Permalink
Update mail.php
Browse files Browse the repository at this point in the history
  • Loading branch information
takayukister committed Feb 11, 2023
1 parent 1d742ef commit e542367
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions includes/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] );
Expand All @@ -55,6 +63,10 @@ private function __construct( $name, $template ) {
}
}


/**
* Returns the name of the email template.
*/
public function name() {
return $this->name;
}
Expand Down

0 comments on commit e542367

Please sign in to comment.