]> git.mxchange.org Git - core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sun, 2 Feb 2025 01:12:32 +0000 (02:12 +0100)
committerRoland Häder <roland@mxchange.org>
Sun, 2 Feb 2025 01:14:12 +0000 (02:14 +0100)
- added a lot more returned scalar type-hints and interfaces

66 files changed:
application/tests/classes/commands/console/class_TestsConsoleMainCommand.php
application/tests/classes/controller/console/class_TestsConsoleDefaultNewsController.php
application/tests/classes/filter/tests/configuration/classes/class_TestConfigurationLoadableClassesFilter.php
application/tests/classes/filter/tests/configuration/is_enabled/class_TestsConfigurationIsEnabledFilter.php
application/tests/classes/filter/tests/requirements/class_TestsPhpRequirementsFilter.php
framework/main/classes/actions/html/class_HtmlLoginProfileAction.php
framework/main/classes/actions/post_registration/class_LoginAfterRegistrationAction.php
framework/main/classes/commands/class_BaseCommand.php
framework/main/classes/commands/console/class_ConsoleFuseCommand.php
framework/main/classes/commands/html/class_HtmlConfirmCommand.php
framework/main/classes/commands/html/class_HtmlDoFormCommand.php
framework/main/classes/commands/html/class_HtmlHomeCommand.php
framework/main/classes/commands/html/class_HtmlLoginAreaCommand.php
framework/main/classes/commands/html/class_HtmlLoginCommand.php
framework/main/classes/commands/html/class_HtmlLoginFailedCommand.php
framework/main/classes/commands/html/class_HtmlLogoutCommand.php
framework/main/classes/commands/html/class_HtmlLogoutDoneCommand.php
framework/main/classes/commands/html/class_HtmlProblemCommand.php
framework/main/classes/commands/html/class_HtmlRegisterCommand.php
framework/main/classes/commands/html/class_HtmlResendLinkCommand.php
framework/main/classes/commands/html/class_HtmlStatusCommand.php
framework/main/classes/commands/image/class_ImageCodeCaptchaCommand.php
framework/main/classes/controller/class_BaseController.php
framework/main/classes/discovery/payment/class_LocalPaymentDiscovery.php
framework/main/classes/feature/class_
framework/main/classes/feature/class_FrameworkFeature.php
framework/main/classes/feature/fuse/class_FuseFeature.php
framework/main/classes/filter/auth/class_UserAuthFilter.php
framework/main/classes/filter/change/class_EmailChangeFilter.php
framework/main/classes/filter/change/class_PasswordChangeFilter.php
framework/main/classes/filter/checkboxes/class_RulesAcceptedFilter.php
framework/main/classes/filter/class_BaseFilterDecorator.php
framework/main/classes/filter/crypto/class_CaptchaEncryptFilter.php
framework/main/classes/filter/guest/class_UserNameIsGuestFilter.php
framework/main/classes/filter/news/class_NewsDownloadFilter.php
framework/main/classes/filter/news/class_NewsProcessFilter.php
framework/main/classes/filter/null/class_NullFilter.php
framework/main/classes/filter/payment/class_PaymentDiscoveryFilter.php
framework/main/classes/filter/update/class_UserStatusConfimedUpdateFilter.php
framework/main/classes/filter/update/class_UserUpdateFilter.php
framework/main/classes/filter/validator/class_EmailValidatorFilter.php
framework/main/classes/filter/validator/class_PasswordValidatorFilter.php
framework/main/classes/filter/validator/class_UserNameValidatorFilter.php
framework/main/classes/filter/verifier/class_AccountPasswordVerifierFilter.php
framework/main/classes/filter/verifier/class_BirthdayVerifierFilter.php
framework/main/classes/filter/verifier/class_ConfirmCodeVerifierFilter.php
framework/main/classes/filter/verifier/class_EmailVerifierFilter.php
framework/main/classes/filter/verifier/class_GraphicalCodeCaptchaVerifierFilter.php
framework/main/classes/filter/verifier/class_PasswordGuestVerifierFilter.php
framework/main/classes/filter/verifier/class_PasswordVerifierFilter.php
framework/main/classes/filter/verifier/class_UserGuestVerifierFilter.php
framework/main/classes/filter/verifier/class_UserNameVerifierFilter.php
framework/main/classes/filter/verifier/class_UserStatusVerifierFilter.php
framework/main/classes/filter/verifier/class_UserUnconfirmedVerifierFilter.php
framework/main/classes/handler/tasks/class_TaskHandler.php
framework/main/classes/registration/class_BaseRegistration.php
framework/main/classes/states/class_BaseState.php
framework/main/classes/tasks/idle/class_IdleLoopTask.php
framework/main/interfaces/actions/class_PerformableAction.php
framework/main/interfaces/actions/commands/class_Commandable.php
framework/main/interfaces/discovery/class_Discoverable.php
framework/main/interfaces/feature/class_Feature.php
framework/main/interfaces/filter/class_Filterable.php
framework/main/interfaces/helper/login/class_HelpableLogin.php
framework/main/interfaces/tasks/class_Taskable.php
framework/main/interfaces/template/view/class_ViewHelper.php

index a88b097197f8416621ccf3ce979503405b4cf9c1..4f422213b8e1dbc0b4f0c9e189b2733eb103f6fb 100644 (file)
@@ -51,7 +51,7 @@ class TestsConsoleMainCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createTestsConsoleMainCommand (CommandResolver $resolverInstance) {
+       public static final function createTestsConsoleMainCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new TestsConsoleMainCommand();
 
@@ -69,7 +69,7 @@ class TestsConsoleMainCommand extends BaseCommand implements Commandable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Debug message
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('TESTS-CONSOLE-MAIN-COMMAND: requestInstance=%s,responseInstance=%s - CALLED!', $requestInstance->__toString(), $responseInstance->__toString()));
                self::createDebugInstance(__CLASS__, __LINE__)->debugMessage('MAIN: --- Starting tests ... ---');
@@ -92,7 +92,7 @@ class TestsConsoleMainCommand extends BaseCommand implements Commandable {
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Add pre filters (e.g. for requirements checks)
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('TESTS-CONSOLE-MAIN-COMMAND: controllerInstance=%s,requestInstance=%s - CALLED!', $controllerInstance->__toString(), $requestInstance->__toString()));
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('tests_php_requirements_filter_class'));
index 630cf65ac8aa9dcc4cb09f293bed05b6b0b3d787..2a6189d1a12438414f02d6fab023fcaf0c7560b8 100644 (file)
@@ -61,7 +61,7 @@ class TestsConsoleDefaultNewsController extends BaseController implements Contro
         * @param       $resolverInstance               An instance of a command resolver class
         * @return      $controllerInstance             A prepared instance of this class
         */
-       public static final function createTestsConsoleDefaultNewsController (CommandResolver $resolverInstance) {
+       public static final function createTestsConsoleDefaultNewsController (CommandResolver $resolverInstance): Controller {
                // Create the instance
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('TEST-CONSOLE-DEFAULT-NEWS-CONTROLLER: resolverInstance=%s - CALLED!', $resolverInstance->__toString()));
                $controllerInstance = new TestsConsoleDefaultNewsController();
@@ -85,7 +85,7 @@ class TestsConsoleDefaultNewsController extends BaseController implements Contro
         * @param       $responseInstance       An instance of a response class
         * @return      void
         */
-       public function handleRequest (Requestable $requestInstance, Responseable $responseInstance) {
+       public function handleRequest (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get the command instance from the resolver by sending a request instance to the resolver
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('TEST-CONSOLE-DEFAULT-NEWS-CONTROLLER: requestInstance=%s,responseInstance=%s - CALLED!', $requestInstance->__toString(), $responseInstance->__toString()));
                $commandInstance = $this->getResolverInstance()->resolveCommandByRequest($requestInstance);
@@ -120,7 +120,7 @@ class TestsConsoleDefaultNewsController extends BaseController implements Contro
         * @param       $filterInstance         A Filterable class
         * @return      void
         */
-       public function addBootstrapFilter (Filterable $filterInstance) {
+       public function addBootstrapFilter (Filterable $filterInstance): void {
                $this->addFilter('bootstrap', $filterInstance);
        }
 
@@ -130,7 +130,7 @@ class TestsConsoleDefaultNewsController extends BaseController implements Contro
         * @param       $filterInstance         A Filterable class
         * @return      void
         */
-       public function addTestsFilter (Filterable $filterInstance) {
+       public function addTestsFilter (Filterable $filterInstance): void {
                $this->addFilter('tests', $filterInstance);
        }
 
@@ -141,7 +141,7 @@ class TestsConsoleDefaultNewsController extends BaseController implements Contro
         * @param       $responseInstance       A Responseable class
         * @return      void
         */
-       public function executeBootstrapFilters (Requestable $requestInstance, Responseable $responseInstance) {
+       public function executeBootstrapFilters (Requestable $requestInstance, Responseable $responseInstance): void {
                $this->executeFilters('bootstrap', $requestInstance, $responseInstance);
        }
 
@@ -152,7 +152,7 @@ class TestsConsoleDefaultNewsController extends BaseController implements Contro
         * @param       $responseInstance       A Responseable class
         * @return      void
         */
-       public function executeTestsFilters (Requestable $requestInstance, Responseable $responseInstance) {
+       public function executeTestsFilters (Requestable $requestInstance, Responseable $responseInstance): void {
                $this->executeFilters('tests', $requestInstance, $responseInstance);
        }
 
index 38990d1548b94c871c77018e93b1812b2c77c35d..117d40212ca9f63a45ffa27c3899c37b7e7996c3 100644 (file)
@@ -50,7 +50,7 @@ class TestConfigurationLoadableClassesFilter extends BaseTestsFilter implements
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createTestConfigurationLoadableClassesFilter () {
+       public final static function createTestConfigurationLoadableClassesFilter (): Filterable {
                // Get a new instance
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('TESTS-CONFIGURATION-LOADABLE-CLASSES-FILTER: CALLED!');
                $filterInstance = new TestConfigurationLoadableClassesFilter();
@@ -67,7 +67,7 @@ class TestConfigurationLoadableClassesFilter extends BaseTestsFilter implements
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Init counter
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('TESTS-CONFIGURATION-LOADABLE-CLASSES-FILTER: requestInstance=%s,responseInstance=%s - CALLED!', $requestInstance->__toString(), $responseInstance->__toString()));
                $passed = $failed = $skipped = $warning = 0;
index b2de74464664feba78ed29ab4a5d1b5f16134719..bc4590f66af1e839270f3c55f21b5ae3afcd9db5 100644 (file)
@@ -51,7 +51,7 @@ class TestsConfigurationIsEnabledFilter extends BaseTestsFilter implements Filte
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createTestsConfigurationIsEnabledFilter () {
+       public final static function createTestsConfigurationIsEnabledFilter (): Filterable {
                // Get a new instance
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('TESTS-CONFIGURATION-IS-ENABLED-FILTER: CALLED!');
                $filterInstance = new TestsConfigurationIsEnabledFilter();
@@ -69,7 +69,7 @@ class TestsConfigurationIsEnabledFilter extends BaseTestsFilter implements Filte
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Init counter
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('TESTS-CONFIGURATION-IS-ENABLED-FILTER: requestInstance=%s,responseInstance=%s - CALLED!', $requestInstance->__toString(), $responseInstance->__toString()));
                $passed = $failed = $skipped = $warning = 0;
index 2d8b9916ab94b907d21fee1897dfdf6aa99637ad..1ed995367d5281183da63ed825deccc3f6e26444 100644 (file)
@@ -51,7 +51,7 @@ class TestsPhpRequirementsFilter extends BaseTestsFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createTestsPhpRequirementsFilter () {
+       public final static function createTestsPhpRequirementsFilter (): Filterable {
                // Get a new instance
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('TESTS-PHP-REQUIREMENTS-FILTER: CALLED!');
                $filterInstance = new TestsPhpRequirementsFilter();
@@ -69,7 +69,7 @@ class TestsPhpRequirementsFilter extends BaseTestsFilter implements Filterable {
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Init counter
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('TESTS-PHP-REQUIREMENTS-FILTER: requestInstance=%s,responseInstance=%s - CALLED!', $requestInstance->__toString(), $responseInstance->__toString()));
                $passed = $failed = $skipped = $warning = 0;
index 36e73d9c5ce24bae03d0931e7b7babc1ae3156ea..d2a9dec8fc1f93a64c34d27ea6b08299072df0e2 100644 (file)
@@ -50,7 +50,7 @@ class HtmlLoginProfileAction extends BaseAction implements PerformableAction, Re
         * @param       $resolverInstance       An instance of an action resolver
         * @return      $actionInstance         An instance of this action class
         */
-       public static final function createHtmlLoginProfileAction (ActionResolver $resolverInstance) {
+       public static final function createHtmlLoginProfileAction (ActionResolver $resolverInstance): PerformableAction {
                // Get a new instance
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('HTML-LOGIN-PROFILE-ACTION: resolverInstance=%s - CALLED!', $resolverInstance->__toString()));
                $actionInstance = new HtmlLoginProfileAction();
@@ -70,7 +70,7 @@ class HtmlLoginProfileAction extends BaseAction implements PerformableAction, Re
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Dummy method
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('HTML-LOGIN-PROFILE-ACTION: requestInstance=%s,responseInstance=%s - CALLED!', $requestInstance->__toString(), $responseInstance->__toString()));
        }
@@ -82,7 +82,7 @@ class HtmlLoginProfileAction extends BaseAction implements PerformableAction, Re
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Add user status filter here
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('HTML-LOGIN-PROFILE-ACTION: controllerInstance=%s,requestInstance=%s - CALLED!', $controllerInstance->__toString(), $requestInstance->__toString()));
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_status_filter_class'));
index 6868102faead7cd7ca062227b02408f7aeee328d..15a884c6fb1f90e2d6c94b522a5b751745657e06 100644 (file)
@@ -47,7 +47,7 @@ class LoginAfterRegistrationAction extends BaseAction implements PerformableActi
         *
         * @return      $actionInstance         An instance of this action class
         */
-       public static final function createLoginAfterRegistrationAction () {
+       public static final function createLoginAfterRegistrationAction (): PerformableAction {
                // Get a new instance
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('LOGIN-REGISTRATION-ACTION: CALLED!');
                $actionInstance = new LoginAfterRegistrationAction();
@@ -64,7 +64,7 @@ class LoginAfterRegistrationAction extends BaseAction implements PerformableActi
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get a login class from factory
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('LOGIN-REGISTRATION-ACTION: requestInstance=%s,responseInstance=%s - CALLED!', $requestInstance->__toString(), $responseInstance->__toString()));
                $loginInstance = LoginFactory::createLoginObjectByRequest($requestInstance);
index 754217da9c796984b6b8a9d919e31875b2609332..b22415e92f7937e22117f89d8a9088b09db4eba3 100644 (file)
@@ -62,7 +62,7 @@ abstract class BaseCommand extends BaseFrameworkSystem {
         * @return      void
         * @throws      InvalidArgumentException        If a parameter has an invalid value
         */
-       public final function initTemplateEngine (string $templateType) {
+       public final function initTemplateEngine (string $templateType): void {
                // Check paramter
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-COMMAND: templateType=%s - CALLED!', $templateType));
                if (empty($templateType)) {
@@ -90,7 +90,7 @@ abstract class BaseCommand extends BaseFrameworkSystem {
         * @return      void
         * @throws      BadMethodCallException  If a POST request ended here
         */
-       protected function sendGenericGetResponse (Requestable $requestInstance, Responseable $responseInstance, string $suffix = '') {
+       protected function sendGenericGetResponse (Requestable $requestInstance, Responseable $responseInstance, string $suffix = ''): void {
                // Check conditions
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-COMMAND: requestInstance=%s,responseInstance=%s,suffix=%s - CALLED!', $requestInstance->__toString(), $responseInstance->__toString(), $suffix));
                if ($requestInstance->isPostRequestMethod()) {
index c8061ffcc295b9766e2911fe23d6ad28c1e602c2..47b755a26133246cb5b75984559c8ff9f49981f9 100644 (file)
@@ -51,7 +51,7 @@ class ConsoleFuseCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public final static function createConsoleFuseCommand (CommandResolver $resolverInstance) {
+       public final static function createConsoleFuseCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new ConsoleFuseCommand();
 
@@ -69,7 +69,7 @@ class ConsoleFuseCommand extends BaseCommand implements Commandable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Is the feature available?
                if (!FrameworkFeature::isFeatureAvailable('fuse')) {
                        // Feature not available, cannot continue
@@ -93,7 +93,7 @@ class ConsoleFuseCommand extends BaseCommand implements Commandable {
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Empty for now ...
        }
 
index 79f8bdf4968ebe6d0626adf0712d2f77a3218d2d..9901706fa12bcf2ed356f5fd9f9b0dea6e111815 100644 (file)
@@ -55,7 +55,7 @@ class HtmlConfirmCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHtmlConfirmCommand (CommandResolver $resolverInstance) {
+       public static final function createHtmlConfirmCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HtmlConfirmCommand();
 
@@ -73,7 +73,7 @@ class HtmlConfirmCommand extends BaseCommand implements Commandable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get the application instance
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
@@ -151,7 +151,7 @@ class HtmlConfirmCommand extends BaseCommand implements Commandable {
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Empty for now
        }
 
index c03af4aae44b258740d95738afe43034277013a2..b6111fb1fb533b3e44d2f8f1bc56d52debdcb303 100644 (file)
@@ -49,7 +49,7 @@ class HtmlDoFormCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHtmlDoFormCommand (CommandResolver $resolverInstance) {
+       public static final function createHtmlDoFormCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HtmlDoFormCommand();
 
@@ -67,7 +67,7 @@ class HtmlDoFormCommand extends BaseCommand implements Commandable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Should never be reached...
                $this->debugBackTrace('This should never be reached.');
        }
@@ -79,7 +79,7 @@ class HtmlDoFormCommand extends BaseCommand implements Commandable {
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Empty for now
        }
 
index e532c2d2b329505f3fc1a604212895b4de9a1acf..6df8f484ea095e603aeba3600a07fa82e63ace7f 100644 (file)
@@ -52,7 +52,7 @@ class HtmlHomeCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHtmlHomeCommand (CommandResolver $resolverInstance) {
+       public static final function createHtmlHomeCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HtmlHomeCommand();
 
@@ -70,7 +70,7 @@ class HtmlHomeCommand extends BaseCommand implements Commandable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get the application instance
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
@@ -135,7 +135,7 @@ class HtmlHomeCommand extends BaseCommand implements Commandable {
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Empty for now
        }
 
index 0c59b7ef3122ca5e1a89fbd47fce9122925b1949..e8b8a053bafd0f86b905cc55edae5dc741dfd1b2 100644 (file)
@@ -60,7 +60,7 @@ class HtmlLoginAreaCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHtmlLoginAreaCommand (CommandResolver $resolverInstance) {
+       public static final function createHtmlLoginAreaCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HtmlLoginAreaCommand();
 
@@ -80,7 +80,7 @@ class HtmlLoginAreaCommand extends BaseCommand implements Commandable {
         * @return      void
         * @todo        Add some stuff here: Some personal data, app/game related data
         */
-       protected function prepareCommand () {
+       protected function prepareCommand (): void {
        }
 
        /**
@@ -90,7 +90,7 @@ class HtmlLoginAreaCommand extends BaseCommand implements Commandable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get the action instance from registry
                $actionInstance = ObjectRegistry::getRegistry('generic')->getInstance('action');
 
@@ -174,7 +174,7 @@ class HtmlLoginAreaCommand extends BaseCommand implements Commandable {
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Get our application instance from the registry
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
index bea535beb0a73dfda0d0990b4c5efac3b2799b3b..9b25923d4a0d53c63beb94dbc09e42f03e00ce8e 100644 (file)
@@ -53,7 +53,7 @@ class HtmlLoginCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHtmlLoginCommand (CommandResolver $resolverInstance) {
+       public static final function createHtmlLoginCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HtmlLoginCommand();
 
@@ -71,7 +71,7 @@ class HtmlLoginCommand extends BaseCommand implements Commandable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Set request instance as extra instance
                ObjectRegistry::getRegistry('generic')->addInstance('extra', $this);
 
@@ -141,7 +141,7 @@ class HtmlLoginCommand extends BaseCommand implements Commandable {
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Empty for now
        }
 
index e64f6ec09a1aff31a99322487dc0433b22b2e69b..94cf1f57e6d8bda9388e412f1ea341fb4813eaf0 100644 (file)
@@ -52,7 +52,7 @@ class HtmlLoginFailedCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHtmlLoginFailedCommand (CommandResolver $resolverInstance) {
+       public static final function createHtmlLoginFailedCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HtmlLoginFailedCommand();
 
@@ -70,7 +70,7 @@ class HtmlLoginFailedCommand extends BaseCommand implements Commandable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get the application instance
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
@@ -137,7 +137,7 @@ class HtmlLoginFailedCommand extends BaseCommand implements Commandable {
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Empty for now
        }
 
index 9951a262b3a8841b8bc37cfd0a515f75aa638575..bd6294196f7ec91d3d2bd145790208e144644033 100644 (file)
@@ -50,7 +50,7 @@ class HtmlLogoutCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHtmlLogoutCommand (CommandResolver $resolverInstance) {
+       public static final function createHtmlLogoutCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HtmlLogoutCommand();
 
@@ -68,7 +68,7 @@ class HtmlLogoutCommand extends BaseCommand implements Commandable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get an auth instance for checking and updating the auth cookies
                $authInstance = ObjectFactory::createObjectByConfiguredName('auth_method_class', array($responseInstance));
 
@@ -89,7 +89,7 @@ class HtmlLogoutCommand extends BaseCommand implements Commandable {
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Empty for now
        }
 
index b70a9d4cdbc4bad3844ae87a88efd5d204715de3..6cf4ce4f92ec882184360099ec90bbbb3119ecaa 100644 (file)
@@ -52,7 +52,7 @@ class HtmlLogoutDoneCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHtmlLogoutDoneCommand (CommandResolver $resolverInstance) {
+       public static final function createHtmlLogoutDoneCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HtmlLogoutDoneCommand();
 
@@ -70,7 +70,7 @@ class HtmlLogoutDoneCommand extends BaseCommand implements Commandable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get the application instance
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
@@ -137,7 +137,7 @@ class HtmlLogoutDoneCommand extends BaseCommand implements Commandable {
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Empty for now
        }
 
index c6f35a7274f4fbc946acd605efcbcd3bfa38374e..720c6cd14877097275f7d548d9f3c7bcb2d3b3e9 100644 (file)
@@ -50,7 +50,7 @@ class HtmlProblemCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHtmlProblemCommand (CommandResolver $resolverInstance) {
+       public static final function createHtmlProblemCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HtmlProblemCommand();
 
@@ -69,7 +69,7 @@ class HtmlProblemCommand extends BaseCommand implements Commandable {
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                DebugMiddleware::getSelfInstance()->partialStub('Unfinished method.');
        }
 
@@ -80,7 +80,7 @@ class HtmlProblemCommand extends BaseCommand implements Commandable {
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Empty for now
        }
 
index 56b2608516f83b0599696dffa59a14d8b1b556d8..daf740adcdca1ec2bee968acce1ace837069b5f2 100644 (file)
@@ -53,7 +53,7 @@ class HtmlRegisterCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHtmlRegisterCommand (CommandResolver $resolverInstance) {
+       public static final function createHtmlRegisterCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HtmlRegisterCommand();
 
@@ -71,7 +71,7 @@ class HtmlRegisterCommand extends BaseCommand implements Commandable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Set request instance as extra instance
                ObjectRegistry::getRegistry('generic')->addInstance('extra', $this);
 
@@ -142,7 +142,7 @@ class HtmlRegisterCommand extends BaseCommand implements Commandable {
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Empty method
        }
 
index 9d4a57d4fa2d55161658aa1ce3b468aa34635ca1..4cf80330ecf78cf9a852393f25b5ad5ad0e2de34 100644 (file)
@@ -55,7 +55,7 @@ class HtmlResendLinkCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHtmlResendLinkCommand (CommandResolver $resolverInstance) {
+       public static final function createHtmlResendLinkCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HtmlResendLinkCommand();
 
@@ -73,7 +73,7 @@ class HtmlResendLinkCommand extends BaseCommand implements Commandable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get user instance from registry
                $userInstance = ObjectRegistry::getRegistry('generic')->getInstance('user');
 
@@ -139,7 +139,7 @@ class HtmlResendLinkCommand extends BaseCommand implements Commandable {
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Filter for checking if account is unconfirmed
                $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName('user_unconfirmed_filter_class'));
        }
index e53e02b7e0a9fd282ec60b815883df9dd204fce0..db8544b3b1e16126fb642ef6361eb432f2d0ed03 100644 (file)
@@ -52,7 +52,7 @@ class HtmlStatusCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createHtmlStatusCommand (CommandResolver $resolverInstance) {
+       public static final function createHtmlStatusCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new HtmlStatusCommand();
 
@@ -71,7 +71,7 @@ class HtmlStatusCommand extends BaseCommand implements Commandable {
         * @return      void
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get the application instance
                $applicationInstance = ApplicationHelper::getSelfInstance();
 
@@ -135,7 +135,7 @@ class HtmlStatusCommand extends BaseCommand implements Commandable {
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Empty for now
        }
 
index 0491a9525d4c3bd31403b8c37227a935e55419a4..1d0da0585d37f2cde79d37051f80091f61863c7c 100644 (file)
@@ -50,7 +50,7 @@ class ImageCodeCaptchaCommand extends BaseCommand implements Commandable {
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public static final function createImageCodeCaptchaCommand (CommandResolver $resolverInstance) {
+       public static final function createImageCodeCaptchaCommand (CommandResolver $resolverInstance): Commandable {
                // Get new instance
                $commandInstance = new ImageCodeCaptchaCommand();
 
@@ -68,7 +68,7 @@ class ImageCodeCaptchaCommand extends BaseCommand implements Commandable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get the decrypted string from request (previously created by a filter!)
                $decryptedCode = $requestInstance->getRequestElement('decrypted');
 
@@ -98,7 +98,7 @@ class ImageCodeCaptchaCommand extends BaseCommand implements Commandable {
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance) {
+       public function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void {
                // Extra filters here...
        }
 
index 421ba3b2fee9ddd9457a1cec5c9b5801962d410a..71f5f8c18a4dc749f369351c6ae5ea28ffa78757 100644 (file)
@@ -92,7 +92,7 @@ abstract class BaseController extends BaseFrameworkSystem implements Registerabl
         * @param       $responseInstance       A Responseable class
         * @return      void
         */
-       public function executeGenericPrePostCommand (Requestable $requestInstance, Responseable $responseInstance) {
+       public function executeGenericPrePostCommand (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get the command instance from the resolver by sending a request instance to the resolver
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-CONTROLLER: requestInstance=%s,responseInstance=%s - CALLED!', $requestInstance->__toString(), $responseInstance->__toString()));
                $commandInstance = $this->getResolverInstance()->resolveCommandByRequest($requestInstance);
@@ -127,7 +127,7 @@ abstract class BaseController extends BaseFrameworkSystem implements Registerabl
         * @param       $responseInstance       An instance of a Responseable class
         * @return      void
         */
-       public function genericHanleRequestLoginFailedRedirect (Requestable $requestInstance, Responseable $responseInstance) {
+       public function genericHanleRequestLoginFailedRedirect (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get the "form action"
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-CONTROLLER: requestInstance=%s,responseInstance=%s - CALLED!', $requestInstance->__toString(), $responseInstance->__toString()));
                $formAction = $requestInstance->getRequestElement('form');
@@ -177,7 +177,7 @@ abstract class BaseController extends BaseFrameworkSystem implements Registerabl
         * @param       $responseInstance       An instance of a Responseable class
         * @return      void
         */
-       public function genericHanleRequestLoginAreaFailedRedirect (Requestable $requestInstance, Responseable $responseInstance) {
+       public function genericHanleRequestLoginAreaFailedRedirect (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get the command instance from the resolver by sending a request instance to the resolver
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-CONTROLLER: requestInstance=%s,responseInstance=%s - CALLED!', $requestInstance->__toString(), $responseInstance->__toString()));
                $commandInstance = $this->getResolverInstance()->resolveCommandByRequest($requestInstance);
@@ -221,7 +221,7 @@ abstract class BaseController extends BaseFrameworkSystem implements Registerabl
         * @throws      InvalidArgumentException        If a parameter has an invalid value
         * @throws      BadMethodCallException  If the given filter chain is already initialized
         */
-       protected function initFilterChain (string $filterChain) {
+       protected function initFilterChain (string $filterChain): void {
                // Check parameter
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-CONTROLLER: filterChain=%s - CALLED!', $filterChain));
                if (empty($filterChain)) {
@@ -249,7 +249,7 @@ abstract class BaseController extends BaseFrameworkSystem implements Registerabl
         * @throws      InvalidArgumentException        If a parameter has an invalid value
         * @throws      BadMethodCallException  If the given filter chain is not yet initialized
         */
-       protected function addFilter (string $filterChain, Filterable $filterInstance) {
+       protected function addFilter (string $filterChain, Filterable $filterInstance): void {
                // Check parameter
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-CONTROLLER: filterChain=%s,filterInstance=%s - CALLED!', $filterChain, $filterInstance->__toString()));
                if (empty($filterChain)) {
@@ -274,7 +274,7 @@ abstract class BaseController extends BaseFrameworkSystem implements Registerabl
         * @param       $filterInstance         An instance of a filter
         * @return      void
         */
-       public function addPreFilter (Filterable $filterInstance) {
+       public function addPreFilter (Filterable $filterInstance): void {
                // Add the pre filter
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-CONTROLLER: filterInstance=%s - CALLED!', $filterInstance->__toString()));
                $this->addFilter(self::FILTER_CHAIN_PRE_COMMAND, $filterInstance);
@@ -289,7 +289,7 @@ abstract class BaseController extends BaseFrameworkSystem implements Registerabl
         * @param       $filterInstance         An instance of a filter
         * @return      void
         */
-       public function addPostFilter (Filterable $filterInstance) {
+       public function addPostFilter (Filterable $filterInstance): void {
                // Add post filter
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-CONTROLLER: filterInstance=%s - CALLED!', $filterInstance->__toString()));
                $this->addFilter(self::FILTER_CHAIN_POST_COMMAND, $filterInstance);
@@ -304,7 +304,7 @@ abstract class BaseController extends BaseFrameworkSystem implements Registerabl
         * @param       $filterInstance         A Filterable class
         * @return      void
         */
-       public function addShutdownFilter (Filterable $filterInstance) {
+       public function addShutdownFilter (Filterable $filterInstance): void {
                // Add shutdown filter
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-CONTROLLER: filterInstance=%s - CALLED!', $filterInstance->__toString()));
                $this->addFilter(self::FILTER_CHAIN_SHUTDOWN, $filterInstance);
@@ -322,7 +322,7 @@ abstract class BaseController extends BaseFrameworkSystem implements Registerabl
         * @return      void
         * @throws      InvalidArgumentException        If the filter chain is invalid
         */
-       protected function executeFilters (string $filterChain, Requestable $requestInstance, Responseable $responseInstance) {
+       protected function executeFilters (string $filterChain, Requestable $requestInstance, Responseable $responseInstance): void {
                // Check parameter
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-CONTROLLER: filterChain=%s,requestInstance=%s,responseInstance=%s - CALLED!', $filterChain, $requestInstance->__toString(), $responseInstance->__toString()));
                if (empty($filterChain)) {
@@ -348,7 +348,7 @@ abstract class BaseController extends BaseFrameworkSystem implements Registerabl
         * @param       $responseInstance       An instance of a Responseable class
         * @return      void
         */
-       protected function executePreFilters (Requestable $requestInstance, Responseable $responseInstance) {
+       protected function executePreFilters (Requestable $requestInstance, Responseable $responseInstance): void {
                // Execute all pre filters
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-CONTROLLER: requestInstance=%s,responseInstance=%s - CALLED!', $requestInstance->__toString(), $responseInstance->__toString()));
                $this->executeFilters(self::FILTER_CHAIN_PRE_COMMAND, $requestInstance, $responseInstance);
@@ -364,7 +364,7 @@ abstract class BaseController extends BaseFrameworkSystem implements Registerabl
         * @param       $responseInstance       An instance of a Responseable class
         * @return      void
         */
-       protected function executePostFilters (Requestable $requestInstance, Responseable $responseInstance) {
+       protected function executePostFilters (Requestable $requestInstance, Responseable $responseInstance): void {
                // Execute all post filters
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-CONTROLLER: requestInstance=%s,responseInstance=%s - CALLED!', $requestInstance->__toString(), $responseInstance->__toString()));
                $this->executeFilters(self::FILTER_CHAIN_POST_COMMAND, $requestInstance, $responseInstance);
@@ -380,7 +380,7 @@ abstract class BaseController extends BaseFrameworkSystem implements Registerabl
         * @param       $responseInstance       A Responseable class
         * @return      void
         */
-       public function executeShutdownFilters (Requestable $requestInstance, Responseable $responseInstance) {
+       public function executeShutdownFilters (Requestable $requestInstance, Responseable $responseInstance): void {
                // Execute all shutdown filter
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('BASE-CONTROLLER: requestInstance=%s,responseInstance=%s - CALLED!', $requestInstance->__toString(), $responseInstance->__toString()));
                $this->executeFilters(self::FILTER_CHAIN_SHUTDOWN, $requestInstance, $responseInstance);
index a81e2bad3cf12e3782ddbf6df76c3b4ca1005618..002726340b8f86c8a1781f6280d5974227608a00 100644 (file)
@@ -57,7 +57,7 @@ class LocalPaymentDiscovery extends BaseDiscovery implements Discoverable, Regis
         * @param       $filterInstance         An instance of a filter
         * @return      $discoveryInstance      An instance of this discovery class
         */
-       public static final function createLocalPaymentDiscovery (Filterable $filterInstance) {
+       public static final function createLocalPaymentDiscovery (Filterable $filterInstance): Discoverable {
                // Get an instance of this class
                $discoveryInstance = new LocalPaymentDiscovery();
 
@@ -74,7 +74,7 @@ class LocalPaymentDiscovery extends BaseDiscovery implements Discoverable, Regis
         * @param       $requestInstance        An instance of a Requestable class
         * @return      void
         */
-       public function discover (Requestable $requestInstance) {
+       public function discover (Requestable $requestInstance): void {
                // Now get a search criteria and set app name and payment action as search critera
                $criteriaInstance = ObjectFactory::createObjectByConfiguredName('search_criteria_class');
                $criteriaInstance->addCriteria('app_name', $requestInstance->getRequestElement('app'));
@@ -101,7 +101,7 @@ class LocalPaymentDiscovery extends BaseDiscovery implements Discoverable, Regis
         * @return      void
         * @todo        0% done
         */
-       public function addResultsToHelper (HelpableTemplate $helperInstance) {
+       public function addResultsToHelper (HelpableTemplate $helperInstance): void {
                // Undone part
        }
 
index 4cad8ab6a5205248dad79889d83a9cc45a6e46aa..fcaffedc9f2f207be078de91264cc755a84c8792 100644 (file)
@@ -45,7 +45,7 @@ class ???Feature extends BaseFeature implements Feature {
         *
         * @return      $featureInstance        An instance of this Feature class
         */
-       public final static function create???Feature () {
+       public final static function create???Feature (): Feature {
                // Get a new instance
                $featureInstance = new ???Feature();
 
@@ -59,7 +59,7 @@ class ???Feature extends BaseFeature implements Feature {
         * @return      $isAvailable    Whether this feature is available
         * @todo        0% done
         */
-       public function isFeatureAvailable () {
+       public function isFeatureAvailable (): bool {
                // Default is not available
                $isAvailable = false;
 
index 3d2fbeb7f227f5f43e4f4a93ef10106ee86693c9..180d82c6e95d1f58a3d684352379864582b08773 100644 (file)
@@ -80,7 +80,7 @@ class FrameworkFeature extends BaseFrameworkSystem {
         * @return      $isEnabled              Whether the given feature is enabled
         * @throws      InvalidArgumentException        If a parameter is invalid
         */
-       public static function isFeatureEnabled (string $featureName) {
+       public static function isFeatureEnabled (string $featureName): bool {
                // Check parameter
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('FRAMEWORK-FEATURE: featureName=%s - CALLED!', $featureName));
                if (empty($featureName)) {
@@ -113,7 +113,7 @@ class FrameworkFeature extends BaseFrameworkSystem {
         * @return      $isAvailable    Whether the given feature is available
         * @throws      InvalidArgumentException        If a parameter is invalid
         */
-       public static function isFeatureAvailable (string $featureName) {
+       public static function isFeatureAvailable (string $featureName): bool {
                // Check parameter
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('FRAMEWORK-FEATURE: featureName=%s - CALLED!', $featureName));
                if (empty($featureName)) {
@@ -169,7 +169,7 @@ class FrameworkFeature extends BaseFrameworkSystem {
         * @throws      BadMethodCallException  If this method has been invoked but the feature isn't available
         * @throws      FeatureMethodNotCallableException       If the requested method cannot be called
         */
-       public static function callFeature (string $featureName, string $featureMethod, array $args = NULL) {
+       public static function callFeature (string $featureName, string $featureMethod, array $args = NULL): mixed {
                // Check parameter
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('FRAMEWORK-FEATURE: featureName=%s,featureMethod=%s,args[]=%s - CALLED!', $featureName, $featureMethod, gettype($args)));
                if (empty($featureName)) {
index fb039d416199d496b5dcf7a52ecad53386b7ab42..2a19409cde30ee85a9e373a08f9c037927e44a2a 100644 (file)
@@ -45,7 +45,7 @@ class FuseFeature extends BaseFeature implements Feature {
         *
         * @return      $featureInstance        An instance of this Feature class
         */
-       public final static function createFuseFeature () {
+       public final static function createFuseFeature (): Feature {
                // Get a new instance
                $featureInstance = new FuseFeature();
 
@@ -59,7 +59,7 @@ class FuseFeature extends BaseFeature implements Feature {
         * @return      $isAvailable    Whether this feature is available
         * @todo        0% done
         */
-       public function isFeatureAvailable () {
+       public function isFeatureAvailable (): bool {
                // Default is not available
                $isAvailable = false;
 
index 41d9b135a71d89ecaaebc1d1e1fe528c38653bf1..b1745c5d0a3c44834bd07e852bd5e5460ba24330 100644 (file)
@@ -58,9 +58,9 @@ class UserAuthFilter extends BaseFilter implements Filterable {
        /**
         * Creates an instance of this filter class
         *
-        * @return      $filterInstance                 An instance of this filter class
+        * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createUserAuthFilter () {
+       public static final function createUserAuthFilter (): Filterable {
                // Get a new instance
                $filterInstance = new UserAuthFilter();
 
@@ -76,7 +76,7 @@ class UserAuthFilter extends BaseFilter implements Filterable {
         *
         * @return      void
         */
-       protected function setDefaultAuthMethod () {
+       protected function setDefaultAuthMethod (): void {
                $this->authMethod = FrameworkBootstrap::getConfigurationInstance()->getConfigEntry('auth_method_class');
        }
 
@@ -90,9 +90,9 @@ class UserAuthFilter extends BaseFilter implements Filterable {
         * @throws      UserPasswordMismatchException   If the supplied password hash does not match
         * @throws      NoClassException        If the user (guest/member) class was not found
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Then get an auth instance for checking and updating the auth cookies
-               $authInstance = ObjectFactory::createObjectByName($this->authMethod, array($responseInstance));
+               $authInstance = ObjectFactory::createObjectByName($this->authMethod, [$responseInstance]);
 
                // Now, get the auth data for comparison
                $authLogin = $authInstance->getUserAuth();
index dcde36f10c10db11d1e418b3f19d9a122f426ded..f45e6a63772d7be1a3754aa4be12a6b146106eea 100644 (file)
@@ -47,9 +47,9 @@ class EmailChangeFilter extends BaseFilter implements Filterable {
        /**
         * Creates an instance of this filter class
         *
-        * @return      $filterInstance                 An instance of this filter class
+        * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createEmailChangeFilter () {
+       public static final function createEmailChangeFilter (): Filterable {
                // Get a new instance
                $filterInstance = new EmailChangeFilter();
 
@@ -66,7 +66,7 @@ class EmailChangeFilter extends BaseFilter implements Filterable {
         * @throws      FilterChainException    If this filter fails to operate
         * @todo        Implement email change of the user here. HINT: Use the User class!
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get both emails
                $email1 = $requestInstance->getRequestElement('email1');
                $email2 = $requestInstance->getRequestElement('email2');
@@ -110,7 +110,7 @@ class EmailChangeFilter extends BaseFilter implements Filterable {
                // Are email and confirmation empty?
                if ((empty($email1)) && (empty($email2))) {
                        // No email change required!
-                       return true;
+                       return;
                }
 
                // Now, get a user instance for comparison
@@ -122,7 +122,7 @@ class EmailChangeFilter extends BaseFilter implements Filterable {
                // Are they different?
                if ($userEmail == $email1) {
                        // Nothing has been changed is fine...
-                       return true;
+                       return;
                }
 
                // Update the "new_email" field
index 4d878637b32a1ffe7c6e6f65fca37fef34a90239..0c993e19ac16e523a1576ecd036c8f1eeff2a5cb 100644 (file)
@@ -47,10 +47,9 @@ class PasswordChangeFilter extends BaseFilter implements Filterable {
        /**
         * Creates an instance of this filter class
         *
-        * @param       $controllerInstance             An instance of a controller class
-        * @return      $filterInstance                 An instance of this filter class
+        * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createPasswordChangeFilter () {
+       public static final function createPasswordChangeFilter (): Filterable {
                // Get a new instance
                $filterInstance = new PasswordChangeFilter();
 
@@ -67,7 +66,7 @@ class PasswordChangeFilter extends BaseFilter implements Filterable {
         * @todo        Finished updating user password hash here. HINT: Use the User class again.
         * @throws      FilterChainException    If this filter fails to operate
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get both passwords
                $pass1 = $requestInstance->getRequestElement('pass1');
                $pass2 = $requestInstance->getRequestElement('pass2');
@@ -99,7 +98,7 @@ class PasswordChangeFilter extends BaseFilter implements Filterable {
                // Are password and confirmation empty?
                if ((empty($pass1)) && (empty($pass2))) {
                        // Don't change password here
-                       return true;
+                       return;
                }
 
                // Do both match?
index 43e06a1261f7d0ac90ed15db587c50d62dc0340e..73bc69c2d882f6b4b0d98aabd56ee1245e638af5 100644 (file)
@@ -47,9 +47,9 @@ class RulesAcceptedFilter extends BaseFilter implements Filterable {
        /**
         * Creates an instance of this filter class
         *
-        * @return      $filterInstance                 An instance of this filter class
+        * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createRulesAcceptedFilter () {
+       public static final function createRulesAcceptedFilter (): Filterable {
                // Get a new instance
                $filterInstance = new RulesAcceptedFilter();
 
@@ -65,7 +65,7 @@ class RulesAcceptedFilter extends BaseFilter implements Filterable {
         * @return      void
         * @throws      FilterChainException    If this filter fails to operate
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get the "rules" value from request
                $rules = $requestInstance->getRequestElement('rules');
 
index b75e5932b029b7ade7555aed2a36ee02acbed62e..652a4b6c19121e133e75dddae0ad525b620eb6f6 100644 (file)
@@ -52,7 +52,7 @@ abstract class BaseFilterDecorator extends BaseFrameworkSystem implements Filter
         * @param       $filterInstance         An instance of a filter
         * @return      void
         */
-       protected final function setFilterInstance (Filterable $filterInstance) {
+       protected final function setFilterInstance (Filterable $filterInstance): void {
                $this->filterInstance = $filterInstance;
        }
 
@@ -61,7 +61,7 @@ abstract class BaseFilterDecorator extends BaseFrameworkSystem implements Filter
         *
         * @return      $filterInstance         An instance of a filter
         */
-       protected final function getFilterInstance () {
+       protected final function getFilterInstance (): Filterable {
                return $this->filterInstance;
        }
 
@@ -72,7 +72,7 @@ abstract class BaseFilterDecorator extends BaseFrameworkSystem implements Filter
         * @param       $responseInstance       An instance of a Responseable class
         * @return      void
         */
-       public final function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public final function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                $this->getFilterInstance()->execute($requestInstance, $responseInstance);
        }
 
@@ -84,6 +84,6 @@ abstract class BaseFilterDecorator extends BaseFrameworkSystem implements Filter
         * @param       $responseInstance       An instance of a Responseable class
         * @return      void
         */
-       abstract public function doExecute (Requestable $requestInstance, Responseable $responseInstance);
+       abstract public function doExecute (Requestable $requestInstance, Responseable $responseInstance): void;
 
 }
index aaab8dff42b178f79a0df145b876a14a575c89db..bb043e512a012c9ffce939df81fa36eccb34fc0a 100644 (file)
@@ -47,9 +47,9 @@ class CaptchaEncryptFilter extends BaseFilter implements Filterable {
        /**
         * Creates an instance of this filter class
         *
-        * @return      $filterInstance                 An instance of this filter class
+        * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createCaptchaEncryptFilter () {
+       public static final function createCaptchaEncryptFilter (): Filterable {
                // Get a new instance
                $filterInstance = new CaptchaEncryptFilter();
 
@@ -65,7 +65,7 @@ class CaptchaEncryptFilter extends BaseFilter implements Filterable {
         * @return      void
         * @throws      EncryptMissingException         If the "encrypt" value is not set
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get "encrypt" string barely from the request
                $encryptRequest = $requestInstance->getRequestElement('encrypt');
 
index d05523f152125225dadd08f981e356eb43014c8f..ca072c3c89020dc7d57b90fe39635c8039a253c3 100644 (file)
@@ -46,9 +46,9 @@ class UserNameIsGuestFilter extends BaseFilter implements Filterable {
        /**
         * Creates an instance of this filter class
         *
-        * @return      $filterInstance                 An instance of this filter class
+        * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createUserNameIsGuestFilter () {
+       public static final function createUserNameIsGuestFilter (): Filterable {
                // Get a new instance
                $filterInstance = new UserNameIsGuestFilter();
 
@@ -63,7 +63,7 @@ class UserNameIsGuestFilter extends BaseFilter implements Filterable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get username from request
                $userName = $requestInstance->getRequestElement('username');
 
index 0737f283285220c13e6c6652d24ac7452e66e0c4..99ad43d707ca5a2a7dd3f8fab43bfb008f835c1e 100644 (file)
@@ -50,7 +50,7 @@ class NewsDownloadFilter extends BaseFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createNewsDownloadFilter () {
+       public static final function createNewsDownloadFilter (): Filterable {
                // Get a new instance
                $filterInstance = new NewsDownloadFilter();
 
@@ -65,7 +65,7 @@ class NewsDownloadFilter extends BaseFilter implements Filterable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get a news instance
                $newsInstance = HtmlNewsFactory::createFactoryByRequest($requestInstance);
 
index f9f9b8346cd91ffe629af0ce610f129bd56f76db..0395290221dfad51a6d2dea80a9f7f58b26e0a4a 100644 (file)
@@ -45,9 +45,9 @@ class NewsProcessFilter extends BaseFilter implements Filterable {
        /**
         * Creates an instance of this filter class
         *
-        * @return      $filterInstance                 An instance of this filter class
+        * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createNewsProcessFilter () {
+       public static final function createNewsProcessFilter (): Filterable {
                // Get a new instance
                $filterInstance = new NewsProcessFilter();
 
@@ -63,7 +63,7 @@ class NewsProcessFilter extends BaseFilter implements Filterable {
         * @return      void
         * @todo        Unfinished stub, add functionality here
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
        }
 
 }
index e5093c88032554c10d0b1bc1f43ecdadd7226a4f..362fe55f4d99f0c1331cd900c834920489ed27b9 100644 (file)
@@ -45,9 +45,9 @@ class NullFilter extends BaseFilter implements Filterable {
        /**
         * Creates an instance of this filter class
         *
-        * @return      $filterInstance                 An instance of this filter class
+        * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createNullFilter () {
+       public static final function createNullFilter (): Filterable {
                // Get a new instance
                $filterInstance = new NullFilter();
 
@@ -62,7 +62,7 @@ class NullFilter extends BaseFilter implements Filterable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Not implemented, just passing through
        }
 
index 1536aec810f5c2b0bf8b265e934e4eaf4706fb42..09fe7e535d7ad05fc7652b4689c97cb63fc160bb 100644 (file)
@@ -62,7 +62,7 @@ class PaymentDiscoveryFilter extends BaseFilter implements Filterable {
         * @return      $filterInstance         An instance of this filter class
         * @throws      NullPointerException    If the resolver is not set
         */
-       public static final function createPaymentDiscoveryFilter (PerformableAction $actionInstance) {
+       public static final function createPaymentDiscoveryFilter (PerformableAction $actionInstance): Filterable {
                // Get a new instance
                $filterInstance = new PaymentDiscoveryFilter();
 
@@ -91,7 +91,7 @@ class PaymentDiscoveryFilter extends BaseFilter implements Filterable {
         * @param       $actionName             Action name to set
         * @return      void
         */
-       protected final function setActionName (string $actionName) {
+       protected final function setActionName (string $actionName): void {
                $this->actionName = $actionName;
        }
 
@@ -100,7 +100,7 @@ class PaymentDiscoveryFilter extends BaseFilter implements Filterable {
         *
         * @return      $actionName             Action name to set
         */
-       public final function getActionName () {
+       public final function getActionName (): string {
                return $this->actionName;
        }
 
@@ -113,7 +113,7 @@ class PaymentDiscoveryFilter extends BaseFilter implements Filterable {
         * @todo        0% done
         * @throws      FilterChainException    If this filter fails to operate
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Try to get real discovery class
                try {
                        // Get an instance from the object factory
index e94a6ba0c50dce703ffd5b02cfae41511b00c6af..0e45b4272e1a784ddf2a6ea0de686b6f1bfa582f 100644 (file)
@@ -47,9 +47,9 @@ class UserStatusConfimedUpdateFilter extends BaseFilter implements Filterable {
        /**
         * Creates an instance of this filter class
         *
-        * @return      $filterInstance                 An instance of this filter class
+        * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createUserStatusConfimedUpdateFilter () {
+       public static final function createUserStatusConfimedUpdateFilter (): Filterable {
                // Get a new instance
                $filterInstance = new UserStatusConfimedUpdateFilter();
 
@@ -64,7 +64,7 @@ class UserStatusConfimedUpdateFilter extends BaseFilter implements Filterable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get user instance from registry
                $userInstance = ObjectRegistry::getRegistry('generic')->getInstance('user');
 
index ac688fd83da1368d06fe0f3c212332b9531429ce..2ee3b60240912cbf82986aabd708d1b04e8340fb 100644 (file)
@@ -46,9 +46,9 @@ class UserUpdateFilter extends BaseFilter implements Filterable {
        /**
         * Creates an instance of this filter class
         *
-        * @return      $filterInstance                 An instance of this filter class
+        * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createUserUpdateFilter () {
+       public static final function createUserUpdateFilter (): Filterable {
                // Get a new instance
                $filterInstance = new UserUpdateFilter();
 
@@ -64,7 +64,7 @@ class UserUpdateFilter extends BaseFilter implements Filterable {
         * @return      void
         * @todo        Add more user updates here
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get user instance from registry
                $userInstance = ObjectRegistry::getRegistry('generic')->getInstance('user');
 
index 01b631d61eba5bdbd962f6437d6eb263b4d6d5dd..95cf41a0c4af6ec709026665e01bde8a394b93b7 100644 (file)
@@ -50,9 +50,9 @@ class EmailValidatorFilter extends BaseFilter implements Filterable {
        /**
         * Creates an instance of this filter class
         *
-        * @return      $filterInstance                 An instance of this filter class
+        * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createEmailValidatorFilter () {
+       public static final function createEmailValidatorFilter (): Filterable {
                // Get a new instance
                $filterInstance = new EmailValidatorFilter();
 
@@ -68,7 +68,7 @@ class EmailValidatorFilter extends BaseFilter implements Filterable {
         * @return      void
         * @throws      FilterChainException    If this filter fails to operate
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get Email from request
                $email = $requestInstance->getRequestElement('email');
 
@@ -143,7 +143,7 @@ class EmailValidatorFilter extends BaseFilter implements Filterable {
         * @param       $email                  Email to check for existence
         * @return      $alreadyTaken   Whether the email has been taken
         */
-       private function ifEmailIsTaken (string $email) {
+       private function ifEmailIsTaken (string $email): bool {
                // Default is already taken
                $alreadyTaken = true;
 
index a6ad85a784be08a357ca040687c500a439079394..5c1939106634bdff059bbde1c99f2f122fa3b880 100644 (file)
@@ -48,7 +48,7 @@ class PasswordValidatorFilter extends BaseFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createPasswordValidatorFilter () {
+       public static final function createPasswordValidatorFilter (): Filterable {
                // Get a new instance
                $filterInstance = new PasswordValidatorFilter();
 
@@ -64,7 +64,7 @@ class PasswordValidatorFilter extends BaseFilter implements Filterable {
         * @return      void
         * @throws      FilterChainException    If this filter fails to operate
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get passwords
                $password1 = $requestInstance->getRequestElement('pass1');
                $password2 = $requestInstance->getRequestElement('pass2');
index 27be04c17144232aa07a3ed5bf7614b474ed6caf..3b2509154028e3dfb53c409a3b43ae7f9b8f5d2c 100644 (file)
@@ -50,9 +50,9 @@ class UserNameValidatorFilter extends BaseFilter implements Filterable {
        /**
         * Creates an instance of this filter class
         *
-        * @return      $filterInstance                 An instance of this filter class
+        * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createUserNameValidatorFilter () {
+       public static final function createUserNameValidatorFilter (): Filterable {
                // Get a new instance
                $filterInstance = new UserNameValidatorFilter();
 
@@ -68,7 +68,7 @@ class UserNameValidatorFilter extends BaseFilter implements Filterable {
         * @return      void
         * @throws      FilterChainException    If this filter fails to operate
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get username from request
                $userName = $requestInstance->getRequestElement('username');
 
@@ -109,7 +109,7 @@ class UserNameValidatorFilter extends BaseFilter implements Filterable {
         * @param       $userName               Username to check for existence
         * @return      $alreadyTaken   Whether the username has been taken
         */
-       private function ifUserNameIsTaken (string $userName) {
+       private function ifUserNameIsTaken (string $userName): bool {
                // Default is already taken
                $alreadyTaken = true;
 
index 0d8dfbd518f2481a3e72a1d0b25e1bf33397443d..d3f611a22dc9b8b7488a85fd5df50f339355c9f7 100644 (file)
@@ -52,7 +52,7 @@ class AccountPasswordVerifierFilter extends BaseFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createAccountPasswordVerifierFilter () {
+       public static final function createAccountPasswordVerifierFilter (): Filterable {
                // Get a new instance
                $filterInstance = new AccountPasswordVerifierFilter();
 
@@ -70,7 +70,7 @@ class AccountPasswordVerifierFilter extends BaseFilter implements Filterable {
         * @throws      FilterChainException                            If this filter fails to operate
         * @todo        Rewrite handling of different password fields
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get password
                $password = $requestInstance->getRequestElement('pass_old');
 
index db8ebc21285b197fda17a26faefbf44b1f995b0c..c8296f48104c162e72c95d4b6503926674c37be7 100644 (file)
@@ -47,7 +47,7 @@ class BirthdayVerifierFilter extends BaseFilter implements Filterable {
         *
         * @return      $filterInstance                 An instance of this filter class
         */
-       public static final function createBirthdayVerifierFilter () {
+       public static final function createBirthdayVerifierFilter (): Filterable {
                // Get a new instance
                $filterInstance = new BirthdayVerifierFilter();
 
@@ -62,7 +62,7 @@ class BirthdayVerifierFilter extends BaseFilter implements Filterable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Day of birth set?
                if (!$requestInstance->isRequestElementSet('birth_day')) {
                        // Day of birth isn't set
index 2c4316a73ebbf8697b1375a012072251847695b2..4490f10b44bb29af7ae154fe593c0f2c1a38c2b6 100644 (file)
@@ -49,7 +49,7 @@ class ConfirmCodeVerifierFilter extends BaseFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createConfirmCodeVerifierFilter () {
+       public static final function createConfirmCodeVerifierFilter (): Filterable {
                // Get a new instance
                $filterInstance = new ConfirmCodeVerifierFilter();
 
@@ -65,7 +65,7 @@ class ConfirmCodeVerifierFilter extends BaseFilter implements Filterable {
         * @return      void
         * @throws      FilterChainException    If this filter fails to operate
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get confirmation code from request
                $confirmCode = $requestInstance->getRequestElement('confirm');
 
index 08bb8beed8267da70fb199fce1c9dec92a2ec2b7..cf801beb86be06198a984128edc519c8f6a12363 100644 (file)
@@ -48,7 +48,7 @@ class EmailVerifierFilter extends BaseFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public final static function createEmailVerifierFilter () {
+       public final static function createEmailVerifierFilter (): Filterable {
                // Get a new instance
                $filterInstance = new EmailVerifierFilter();
 
@@ -65,7 +65,7 @@ class EmailVerifierFilter extends BaseFilter implements Filterable {
         * @throws      FilterChainException    If this filter fails to operate
         * @todo        0% done
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Implement this!
                DebugMiddleware::getSelfInstance()->partialStub('Please implement this method.');
        }
index 3093692741d5f3e9d575c96ae98fedfca9e13b82..e4871e5e5497e1699978c2fa6d0488ac39f19fcf 100644 (file)
@@ -50,7 +50,7 @@ class GraphicalCodeCaptchaVerifierFilter extends BaseFilter implements Filterabl
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createGraphicalCodeCaptchaVerifierFilter () {
+       public static final function createGraphicalCodeCaptchaVerifierFilter (): Filterable {
                // Get a new instance
                $filterInstance = new GraphicalCodeCaptchaVerifierFilter();
 
@@ -66,7 +66,7 @@ class GraphicalCodeCaptchaVerifierFilter extends BaseFilter implements Filterabl
         * @return      void
         * @throws      FilterChainException    If this filter fails to operate
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Is the form set?
                if (($requestInstance->getRequestElement('command') !== 'do_form') || (!$requestInstance->isRequestElementSet('form'))) {
                        // Required field not set
index a4a7870ef3607a47ecac811b6c2fe37b1b37da28..e11a2cd7ff61fe58b86ad129400d7b50af1e6095 100644 (file)
@@ -48,7 +48,7 @@ class PasswordGuestVerifierFilter extends BaseFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createPasswordGuestVerifierFilter () {
+       public static final function createPasswordGuestVerifierFilter (): Filterable {
                // Get a new instance
                $filterInstance = new PasswordGuestVerifierFilter();
 
@@ -64,7 +64,7 @@ class PasswordGuestVerifierFilter extends BaseFilter implements Filterable {
         * @return      void
         * @throws      FilterChainException    If this filter fails to operate
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get password
                $password = $requestInstance->getRequestElement('passwd');
 
index 2ab77ca1696725cef5ced3d7899464a8de6cb56c..bfe9c01dff9feb419213a3fb0fd156b862100486 100644 (file)
@@ -47,7 +47,7 @@ class PasswordVerifierFilter extends BaseFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createPasswordVerifierFilter () {
+       public static final function createPasswordVerifierFilter (): Filterable {
                // Get a new instance
                $filterInstance = new PasswordVerifierFilter();
 
@@ -63,7 +63,7 @@ class PasswordVerifierFilter extends BaseFilter implements Filterable {
         * @return      void
         * @throws      FilterChainException    If this filter fails to operate
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get password
                $password = $requestInstance->getRequestElement('pass');
 
index e1f087d59a95675bd03169a771d7a3d2d24dcf14..4a3da1bee03ca22641386982b26cff9c633ca1c3 100644 (file)
@@ -51,7 +51,7 @@ class UserGuestVerifierFilter extends BaseFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createUserGuestVerifierFilter () {
+       public static final function createUserGuestVerifierFilter (): Filterable {
                // Get a new instance
                $filterInstance = new UserGuestVerifierFilter();
 
@@ -67,7 +67,7 @@ class UserGuestVerifierFilter extends BaseFilter implements Filterable {
         * @return      void
         * @throws      FilterChainException    If this filter fails to operate
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get username from request
                $userName = $requestInstance->getRequestElement('user');
 
@@ -111,7 +111,7 @@ class UserGuestVerifierFilter extends BaseFilter implements Filterable {
         * @param       $userName               Username to check for existence
         * @return      $alreadyTaken   Whether the username has been taken
         */
-       private function ifUserGuestIsTaken (string $userName) {
+       private function ifUserGuestIsTaken (string $userName): bool {
                // Default is already taken
                $alreadyTaken = true;
 
index cdd08a1a8ba1712f2d7aaf7a369db5133f00eaa8..02485c2189e2a4a456fce96f353c0b2d5c87fd03 100644 (file)
@@ -52,7 +52,7 @@ class UserNameVerifierFilter extends BaseFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createUserNameVerifierFilter () {
+       public static final function createUserNameVerifierFilter (): Filterable {
                // Get a new instance
                $filterInstance = new UserNameVerifierFilter();
 
@@ -68,7 +68,7 @@ class UserNameVerifierFilter extends BaseFilter implements Filterable {
         * @return      void
         * @throws      FilterChainException    If this filter fails to operate
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get username from request
                $userName = $requestInstance->getRequestElement('username');
 
@@ -109,7 +109,7 @@ class UserNameVerifierFilter extends BaseFilter implements Filterable {
         * @param       $userName               Username to check for existence
         * @return      $alreadyTaken   Whether the username has been taken
         */
-       private function ifUserNameIsTaken (string $userName) {
+       private function ifUserNameIsTaken (string $userName): bool {
                // Default is already taken
                $alreadyTaken = true;
 
index b025f5d04de99be2a2fa9efdcf4e8f1c49a9e59c..c94b615dbd48c30f872747d91785b5e8d3160792 100644 (file)
@@ -48,7 +48,7 @@ class UserStatusVerifierFilter extends BaseFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createUserStatusVerifierFilter () {
+       public static final function createUserStatusVerifierFilter (): Filterable {
                // Get a new instance
                $filterInstance = new UserStatusVerifierFilter();
 
@@ -63,7 +63,7 @@ class UserStatusVerifierFilter extends BaseFilter implements Filterable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get a user instance for comparison
                $userInstance = ObjectRegistry::getRegistry('generic')->getInstance('user');
 
index 46ea0c1ff005dae44bda428bb122799e5a8c876f..c358176dd50b519a4c973a985d60271724a63373 100644 (file)
@@ -50,7 +50,7 @@ class UserUnconfirmedVerifierFilter extends BaseFilter implements Filterable {
         *
         * @return      $filterInstance         An instance of this filter class
         */
-       public static final function createUserUnconfirmedVerifierFilter () {
+       public static final function createUserUnconfirmedVerifierFilter (): Filterable {
                // Get a new instance
                $filterInstance = new UserUnconfirmedVerifierFilter();
 
@@ -65,7 +65,7 @@ class UserUnconfirmedVerifierFilter extends BaseFilter implements Filterable {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+       public function execute (Requestable $requestInstance, Responseable $responseInstance): void {
                // Get a user instance for comparison
                $userInstance = UserFactory::createUserByRequest($requestInstance);
 
index 3b23ff2bc8c7f16b510fae7a2c898a53e2e195fc..34ea5fa38cd670f17804b3ea5fd45e36747ff166 100644 (file)
@@ -72,7 +72,7 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
         *
         * @return      $handlerInstance        An instance of a HandleableTask class
         */
-       public static final function createTaskHandler () {
+       public static final function createTaskHandler (): HandleableTask {
                // Get new instance
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('TASK-HANDLER: CALLED!');
                $handlerInstance = new TaskHandler();
@@ -109,7 +109,7 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
         * @return      void
         * @throws      InvalidTaskException    If the current task is invalid
         */
-       private function executeCurrentTask () {
+       private function executeCurrentTask (): void {
                // Update no task by default
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('TASK-HANDLER: CALLED!');
                $updateTask = false;
@@ -190,7 +190,7 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
         * @param       $taskEntry      An array with a task
         * @return      void
         */
-       private function updateTask (array $taskEntry) {
+       private function updateTask (array $taskEntry): void {
                // Get the key from current iteration
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('TASK-HANDLER: taskEntry()=%d - CALLED!', count($taskEntry)));
                $key = $this->getListInstance()->getIterator()->key();
@@ -213,7 +213,7 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
         * @param       $taskData       Data of the task
         * @return      void
         */
-       private function unregisterTask (array $taskData) {
+       private function unregisterTask (array $taskData): void {
                // Remove the entry
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('TASK-HANDLER: Removing task %s from queue - CALLED!', $taskData['id']));
                $this->getListInstance()->removeEntry('tasks', $taskData);
@@ -228,7 +228,7 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
         * @param       $taskInstanc    An instanceof a Taskable class
         * @return      $taskName               Name of the task as used while registration
         */
-       public function searchTask (Taskable $taskInstance) {
+       public function searchTask (Taskable $taskInstance): string {
                // Default is an empty (not found) task name
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('TASK-HANDLER: taskInstance=%s - CALLED!', $taskInstance->__toString()));
                $taskName = '';
@@ -265,7 +265,7 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
         * @throws      InvalidArgumentException        If a parameter is not valid
         * @throws      UnexpectedValueException        If an unexpected value has been configured
         */
-       public function registerTask (string $taskName, Taskable $taskInstance) {
+       public function registerTask (string $taskName, Taskable $taskInstance): void {
                // Is the parameter valid
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage(sprintf('TASK-HANDLER: taskName=%s,taskInstance - CALLED!', $taskName, $taskInstance->__toString()));
                if (empty($taskName)) {
@@ -345,7 +345,7 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
         *
         * @return      $tasksLeft      Whether there are tasks left to handle
         */
-       public function hasTasksLeft () {
+       public function hasTasksLeft (): bool {
                // Do we have tasks there?
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('TASK-HANDLER: CALLED!');
                $tasksLeft = ($this->getListInstance()->count() > 0);
@@ -363,7 +363,7 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
         *
         * @return      void
         */
-       public function handleTasks () {
+       public function handleTasks (): void {
                // Should we rewind?
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('TASK-HANDLER: CALLED!');
                if (!$this->getListInstance()->getIterator()->valid()) {
@@ -390,7 +390,7 @@ class TaskHandler extends BaseHandler implements Registerable, HandleableTask {
         * 
         * @return      void
         */
-       public function doShutdown () {
+       public function doShutdown (): void {
                // Always rewind to the beginning for next loop
                //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->traceMessage('TASK-HANDLER: Invoking this->listInstance->iterator->rewind() - CALLED!');
                $this->getListInstance()->getIterator()->rewind();
index 2221eeb69463bcbd486080ede1d1d30ff70930ff..5f608e6eba6e1e276190f56a5ae88c8e5e4674c4 100644 (file)
@@ -57,7 +57,7 @@ abstract class BaseRegistration extends BaseFrameworkSystem {
         *
         * @return      void
         */
-       protected function initFilterChains () {
+       protected function initFilterChains (): void {
                // Pre/post-registration filters
                $this->preRegistrationFilter = ObjectFactory::createObjectByConfiguredName('filter_chain_class');
                $this->postRegistrationFilter = ObjectFactory::createObjectByConfiguredName('filter_chain_class');
@@ -69,7 +69,7 @@ abstract class BaseRegistration extends BaseFrameworkSystem {
         * @param       $filterInstance         An instance of a filter
         * @return      void
         */
-       public function addPreFilter (Filterable $filterInstance) {
+       public function addPreFilter (Filterable $filterInstance): void {
                // Add the pre filter
                $this->preRegistrationFilter->addFilter($filterInstance);
        }
@@ -80,7 +80,7 @@ abstract class BaseRegistration extends BaseFrameworkSystem {
         * @param       $filterInstance         An instance of a filter
         * @return      void
         */
-       public function addPostFilter (Filterable $filterInstance) {
+       public function addPostFilter (Filterable $filterInstance): void {
                // Add the post filter
                $this->postRegistrationFilter->addFilter($filterInstance);
        }
@@ -90,7 +90,7 @@ abstract class BaseRegistration extends BaseFrameworkSystem {
         *
         * @return      void
         */
-       protected function executePreFilters () {
+       protected function executePreFilters (): void {
                // Execute all pre filters
                $this->preRegistrationFilter->processFilters(FrameworkBootstrap::getRequestInstance(), FrameworkBootstrap::getResponseInstance());
        }
@@ -100,7 +100,7 @@ abstract class BaseRegistration extends BaseFrameworkSystem {
         *
         * @return      void
         */
-       protected function executePostFilters () {
+       protected function executePostFilters (): void {
                // Execute all post filters
                $this->postRegistrationFilter->processFilters(FrameworkBootstrap::getRequestInstance(), FrameworkBootstrap::getResponseInstance());
        }
index ca17995351c1b8db48227da5252e980f293661b2..3df6c4cf6921598e643f087a34d05f2ec74a5800 100644 (file)
@@ -57,7 +57,7 @@ abstract class BaseState extends BaseFrameworkSystem implements Stateable {
         *
         * @return      $stateName      Name of this state in a printable maner
         */
-       public final function getStateName () {
+       public final function getStateName (): string {
                return $this->stateName;
        }
 
@@ -67,7 +67,7 @@ abstract class BaseState extends BaseFrameworkSystem implements Stateable {
         * @param       $stateName      Name of this state in a printable maner
         * @return      void
         */
-       protected final function setStateName (string $stateName) {
+       protected final function setStateName (string $stateName): void {
                $this->stateName = $stateName;
        }
 
@@ -78,7 +78,7 @@ abstract class BaseState extends BaseFrameworkSystem implements Stateable {
         * @return      void
         * @throws      UnsupportedOperationException   This method should be overwritten
         */
-       public function executeState (Executor $executorInstance) {
+       public function executeState (Executor $executorInstance): void {
                throw new UnsupportedOperationException(array($this, __FUNCTION__, $executorInstance), FrameworkInterface::EXCEPTION_UNSPPORTED_OPERATION);
        }
 
index 60d42fdc88312b5ec7495f167610f3e6974d538d..7b844a37607131502c6125d74ce1beb640868d7c 100644 (file)
@@ -55,7 +55,7 @@ class IdleLoopTask extends BaseTask implements Taskable, Visitable {
         *
         * @return      $taskInstance   An instance of a Taskable/Visitable class
         */
-       public static final function createIdleLoopTask () {
+       public static final function createIdleLoopTask (): Taskable {
                // Get new instance
                $taskInstance = new IdleLoopTask();
 
@@ -69,7 +69,7 @@ class IdleLoopTask extends BaseTask implements Taskable, Visitable {
         * @param       $visitorInstance        An instance of a Visitor class
         * @return      void
         */
-       public function accept (Visitor $visitorInstance) {
+       public function accept (Visitor $visitorInstance): void {
                // Visit this task
                $visitorInstance->visitTask($this);
        }
@@ -79,7 +79,7 @@ class IdleLoopTask extends BaseTask implements Taskable, Visitable {
         *
         * @return      void
         */
-       public function executeTask () {
+       public function executeTask (): void {
                // Idle here a little
                $this->idle($this->idleTime);
        }
@@ -89,7 +89,7 @@ class IdleLoopTask extends BaseTask implements Taskable, Visitable {
         *
         * @return      void
         */
-       public function doShutdown () {
+       public function doShutdown (): void {
                // Debug message
                self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('TASK: Shutting down...');
        }
index 0795006f890440820e143b2daace6fec3d4213bf..6cb58ce776ed49a846501fbf9351fa8b20137b75 100644 (file)
@@ -37,6 +37,6 @@ interface PerformableAction extends FrameworkInterface {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       function execute (Requestable $requestInstance, Responseable $responseInstance);
+       function execute (Requestable $requestInstance, Responseable $responseInstance): void;
 
 }
index bb8ddfe189a53ba9e03d5ba38d8072c6ec73b71c..d39ccd6a8f6d1002167f127b0e34492a43fc9568 100644 (file)
@@ -37,7 +37,7 @@ interface Commandable extends PerformableAction {
         * @param       $requestInstance                An instance of a class with an Requestable interface
         * @return      void
         */
-       function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance);
+       function addExtraFilters (Controller $controllerInstance, Requestable $requestInstance): void;
 
        /**
         * Initializes the template engine
@@ -45,6 +45,6 @@ interface Commandable extends PerformableAction {
         * @param       $templateType   Type of template, e.g. 'html', 'image', 'console' ...
         * @return      void
         */
-       function initTemplateEngine (string $templateType);
+       function initTemplateEngine (string $templateType): void;
 
 }
index 072cffdd2674b9571ee234b297311ea9740c71b9..b5ed403fd913cad6ba26c8ca1698491110b32d94 100644 (file)
@@ -36,7 +36,7 @@ interface Discoverable extends FrameworkInterface {
         * @param       $requestInstance        An instance of a Requestable class
         * @return      void
         */
-       function discover (Requestable $requestInstance);
+       function discover (Requestable $requestInstance): void;
 
        /**
         * Adds the database result in a human-readable format to the helper class
@@ -44,6 +44,6 @@ interface Discoverable extends FrameworkInterface {
         * @param       $helperInstance         An instance of a helper class
         * @return      void
         */
-       function addResultsToHelper (HelpableTemplate $helperInstance);
+       function addResultsToHelper (HelpableTemplate $helperInstance): void;
 
 }
index da2dd2192aa799174a8fab7a6cda87544a34aebd..e1deace08563f0fb903add8eab5ceec6cc95b52b 100644 (file)
@@ -33,6 +33,6 @@ interface Feature extends FrameworkInterface {
         *
         * @return      $isAvailable    Whether this feature is available
         */
-       function isFeatureAvailable ();
+       function isFeatureAvailable (): bool;
 
 }
index f33dc433d086bb0365a6e8ceb16c4463aca0e3ab..995ad2edf47199d906e94c17eb7188694284abb2 100644 (file)
@@ -37,6 +37,6 @@ interface Filterable extends FrameworkInterface {
         * @param       $responseInstance       An instance of a class with an Responseable interface
         * @return      void
         */
-       function execute (Requestable $requestInstance, Responseable $responseInstance);
+       function execute (Requestable $requestInstance, Responseable $responseInstance): void;
 
 }
index d3b1382b5a92a74a58f095aca8ad637c095a2b0a..1c3ca5fa28b4c527a9c34fab16412ccdba0a98f9 100644 (file)
@@ -36,6 +36,6 @@ interface HelpableLogin extends Helper {
         * @param       $responseInstance       An instance of a Responseable class
         * @return      void
         */
-       function executeLogin (Responseable $responseInstance);
+       function executeLogin (Responseable $responseInstance): void;
 
 }
index 6efe8f683bb20bd2c5b93a0ae8534abf4efbfdc9..0fc3fee559c5b20b4ddc28b2bff9051b83e42998 100644 (file)
@@ -35,20 +35,20 @@ interface Taskable extends FrameworkInterface {
         * @param       $visitorInstance        An instance of a Visitor class
         * @return      void
         */
-       function accept (Visitor $visitorInstance);
+       function accept (Visitor $visitorInstance): void;
 
        /**
         * Executes the task
         *
         * @return      void
         */
-       function executeTask ();
+       function executeTask (): void;
 
        /**
         * Shuts down the task
         *
         * @return      void
         */
-       function doShutdown ();
+       function doShutdown (): void;
 
 }
index a01e1d22619690efe4e32e99974cd849ee1eb8e3..b82572c3d03431a266b0271c684492f7e502d2f4 100644 (file)
@@ -34,6 +34,6 @@ interface ViewHelper extends FrameworkInterface {
         * @param       $args   Arguments to send to the view helper
         * @return      mixed   Unknown return arguments, or void
         */
-       function execute (array $args = NULL);
+       function execute (array $args = NULL): mixed;
 
 }