From: Roland Häder Date: Sat, 7 Nov 2020 12:03:48 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=fb18ef9a3eafd5fe2a49fa8ab5908052894361d9 Continued: - added type-hints for primitive variables Signed-off-by: Roland Häder --- diff --git a/application/tests/class_ApplicationHelper.php b/application/tests/class_ApplicationHelper.php index 8eab367f..7559e433 100644 --- a/application/tests/class_ApplicationHelper.php +++ b/application/tests/class_ApplicationHelper.php @@ -110,9 +110,9 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication * @param $appVersion The application's version number * @return void */ - public final function setAppVersion ($appVersion) { + public final function setAppVersion (string $appVersion) { // Cast and set it - $this->appVersion = (string) $appVersion; + $this->appVersion = $appVersion; } /** @@ -130,9 +130,9 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication * @param $appName The application's human-readable name * @return void */ - public final function setAppName ($appName) { + public final function setAppName (string $appName) { // Cast and set it - $this->appName = (string) $appName;; + $this->appName = $appName;; } /** @@ -150,7 +150,7 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication * @param $shortName The application's short uni*-like name * @return void */ - public final function setAppShortName ($shortName) { + public final function setAppShortName (string $shortName) { // Cast and set it $this->shortName = (string) $shortName; } diff --git a/framework/main/interfaces/application/class_ManageableApplication.php b/framework/main/interfaces/application/class_ManageableApplication.php index ec1f6aa1..c5a7bc96 100644 --- a/framework/main/interfaces/application/class_ManageableApplication.php +++ b/framework/main/interfaces/application/class_ManageableApplication.php @@ -34,6 +34,51 @@ use Org\Mxchange\CoreFramework\Template\CompileableTemplate; * along with this program. If not, see . */ interface ManageableApplication extends FrameworkInterface { + /** + * Getter for the version number + * + * @return $appVersion The application's version number + */ + function getAppVersion (); + + /** + * Setter for the version number + * + * @param $appVersion The application's version number + * @return void + */ + function setAppVersion (string $appVersion); + + /** + * Getter for human-readable name + * + * @return $appName The application's human-readable name + */ + function getAppName (); + + /** + * Setter for human-readable name + * + * @param $appName The application's human-readable name + * @return void + */ + function setAppName (string $appName); + + /** + * Getter for short uni*-like name + * + * @return $shortName The application's short uni*-like name + */ + function getAppShortName (); + + /** + * Setter for short uni*-like name + * + * @param $shortName The application's short uni*-like name + * @return void + */ + function setAppShortName (string $shortName); + /** * 1) Setups application data * @@ -69,7 +114,7 @@ interface ManageableApplication extends FrameworkInterface { * * @return $masterTemplateName Name of the master template */ - function buildMasterTemplateName(); + function buildMasterTemplateName (); /** * Assigns extra application-depending data