diff options
Diffstat (limited to 'app/frontend/mail')
-rw-r--r-- | app/frontend/mail/MailModule.php | 12 | ||||
-rw-r--r-- | app/frontend/mail/Mailer.php | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/app/frontend/mail/MailModule.php b/app/frontend/mail/MailModule.php index e10c556..464f1d0 100644 --- a/app/frontend/mail/MailModule.php +++ b/app/frontend/mail/MailModule.php @@ -15,7 +15,7 @@ class MailModule extends TModule { private $_templateCacheSubpath = 'mail'; private static $_templateTranslationCatalogue = 'messages'; - public function setConfigPath($configPath) { + public function setConfigPath(string $configPath) { $this->_configPath = TPropertyValue::ensureString($configPath); $this->_config = json_decode( file_get_contents( @@ -24,7 +24,7 @@ class MailModule extends TModule { ); } - public function setTemplatePath($templatePath) { + public function setTemplatePath(string $templatePath) { $this->_templatePath = Prado::getPathOfNamespace( TPropertyValue::ensureString($templatePath) ); @@ -42,7 +42,7 @@ class MailModule extends TModule { return $this->_templatePath; } - public function setCachePath($cachePath) { + public function setCachePath(string $cachePath) { $this->templateCacheSubpath = TPropertyValue::ensureString($cachePath); } @@ -65,7 +65,7 @@ class MailModule extends TModule { return $cachePath; } - public function setTemplateExtension($ext) { + public function setTemplateExtension(string $ext) { self::$_templateExtension = TPropertyValue::ensureString($ext); } @@ -73,7 +73,7 @@ class MailModule extends TModule { return self::$_templateExtension; } - public function setTranslationCatalogue($ext) { + public function setTranslationCatalogue(string $ext) { self::$_templateTranslationCatalogue = TPropertyValue::ensureString($ext); } @@ -92,7 +92,7 @@ class MailModule extends TModule { return self::$_translator; } - public function getTemplate($template, $language=NULL) { + public function getTemplate(string $template, string $language='') { $template = new MailTemplate($template . '.' . $this->TemplateExtension); $template->setOutputMode(PHPTAL::HTML5); $template->setTemplateRepository($this->_templatePath); diff --git a/app/frontend/mail/Mailer.php b/app/frontend/mail/Mailer.php index 327c9af..3b95568 100644 --- a/app/frontend/mail/Mailer.php +++ b/app/frontend/mail/Mailer.php @@ -24,7 +24,7 @@ class Mailer extends PHPMailer { } } - public function sendTemplate(MailTemplate $template, $subject, $to, $name) { + public function sendTemplate(MailTemplate $template, string $subject, string $to, string $name) { $this->addAddress($to, $name); $this->isHTML(TRUE); $this->Subject = $subject; |