From b7ed2a19491fa6e5e4e08bd2d4f4ac3ff0bd946a Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 21 Mar 2015 21:59:02 +0100 Subject: [PATCH] Moved getter near it's setter counter part to have them next to each other. Still this particular "base" class needs cleanup in things of position of methods: first private, then protected then public and always keep setter and getter close to each other and at top position (right after contructor). All existing factory methods always lead setters and getters (right after constructor). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../main/template/class_BaseTemplateEngine.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/inc/classes/main/template/class_BaseTemplateEngine.php b/inc/classes/main/template/class_BaseTemplateEngine.php index d47d80cf..306867ff 100644 --- a/inc/classes/main/template/class_BaseTemplateEngine.php +++ b/inc/classes/main/template/class_BaseTemplateEngine.php @@ -471,6 +471,15 @@ class BaseTemplateEngine extends BaseFrameworkSystem { $this->templateType = (string) $templateType; } + /** + * Getter for template type + * + * @return $templateType The current template's type + */ + public final function getTemplateType () { + return $this->templateType; + } + /** * Setter for the last loaded template's FQFN * @@ -579,15 +588,6 @@ class BaseTemplateEngine extends BaseFrameworkSystem { $this->compileOutputPath = (string) $compileOutputPath; } - /** - * Getter for template type - * - * @return $templateType The current template's type - */ - public final function getTemplateType () { - return $this->templateType; - } - /** * Unsets the given offset in the variable group * -- 2.39.2