summaryrefslogtreecommitdiff
path: root/app/frontend/mail/MailModule.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/frontend/mail/MailModule.php')
-rw-r--r--app/frontend/mail/MailModule.php12
1 files changed, 6 insertions, 6 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);