From: Roland Haeder Date: Sat, 21 Mar 2015 20:59:02 +0000 (+0100) Subject: Moved getter near it's setter counter part to have them next to each other. X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=b7ed2a19491fa6e5e4e08bd2d4f4ac3ff0bd946a 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). Signed-off-by: Roland Häder --- 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 *