diff options
author | emkael <emkael@tlen.pl> | 2016-11-03 23:22:40 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-11-03 23:22:40 +0100 |
commit | bef5754e4676a8a578550b6af24d050a946405eb (patch) | |
tree | 190a54af236d00c476b28799ba502a42205a95c5 /app/frontend/mail/MailModule.php | |
parent | 94e03b260197122ae8f6d7dfedfb2a191fdae273 (diff) |
* more strict function definitions
Diffstat (limited to 'app/frontend/mail/MailModule.php')
-rw-r--r-- | app/frontend/mail/MailModule.php | 12 |
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); |