]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 7 Nov 2020 13:00:43 +0000 (14:00 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 7 Nov 2020 13:00:43 +0000 (14:00 +0100)
- ApplicationHelper now doesn't have all these fields set, BaseApplication holds it
- all __construct()'s $className parameter have now a type-hint "string" set
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
67 files changed:
application/hub/class_ApplicationHelper.php
application/hub/classes/apt-proxy/class_BaseNodeAptProxy.php
application/hub/classes/blocks/class_BaseBlock.php
application/hub/classes/chat/class_BaseNodeChat.php
application/hub/classes/class_Base
application/hub/classes/class_BaseHubSystem.php
application/hub/classes/communicator/class_BaseCommunicator.php
application/hub/classes/container/class_BaseHubContainer.php
application/hub/classes/crawler/class_BaseNodeCrawler.php
application/hub/classes/cruncher/class_BaseHubCruncher.php
application/hub/classes/database/frontend/class_BaseHubDatabaseWrapper.php
application/hub/classes/decoder/class_BaseDecoder.php
application/hub/classes/dht/class_BaseDht.php
application/hub/classes/discovery/class_BaseNodeDiscovery.php
application/hub/classes/discovery/recipient/class_BaseRecipientDiscovery.php
application/hub/classes/filter/class_BaseAptProxyFilter.php
application/hub/classes/filter/class_BaseChatFilter.php
application/hub/classes/filter/class_BaseCrawlerFilter.php
application/hub/classes/filter/class_BaseCruncherFilter.php
application/hub/classes/filter/class_BaseHubFilter.php
application/hub/classes/filter/class_BaseMinerFilter.php
application/hub/classes/filter/class_BaseNodeFilter.php
application/hub/classes/handler/class_BaseHubHandler.php
application/hub/classes/handler/data/answer-status/class_BaseAnswerStatusHandler.php
application/hub/classes/handler/data/class_BaseDataHandler.php
application/hub/classes/handler/data/message-types/class_BaseMessageHandler.php
application/hub/classes/handler/protocol/class_BaseProtocolHandler.php
application/hub/classes/handler/protocol/ipv4/class_BaseIpV4ProtocolHandler.php
application/hub/classes/handler/raw_data/class_BaseRawDataHandler.php
application/hub/classes/helper/class_BaseHubSystemHelper.php
application/hub/classes/helper/connection/class_BaseConnectionHelper.php
application/hub/classes/helper/connection/ipv4/class_BaseIpV4ConnectionHelper.php
application/hub/classes/helper/messages/class_BaseMessageHelper.php
application/hub/classes/helper/node/answer/class_BaseHubAnswerHelper.php
application/hub/classes/helper/node/class_BaseNodeHelper.php
application/hub/classes/helper/work_units/class_BaseWorkUnitHelper.php
application/hub/classes/info/class_BaseInfo.php
application/hub/classes/info/connection/class_ConnectionInfo.php
application/hub/classes/listener/class_BaseListener.php
application/hub/classes/listener/class_BaseListenerDecorator.php
application/hub/classes/miner/class_BaseHubMiner.php
application/hub/classes/nodes/class_BaseHubNode.php
application/hub/classes/pools/class_BasePool.php
application/hub/classes/producer/class_BaseProducer.php
application/hub/classes/producer/cruncher/class_BaseCruncherProducer.php
application/hub/classes/producer/cruncher/keys/class_BaseKeyProducer.php
application/hub/classes/producer/cruncher/work_units/class_BaseUnitProducer.php
application/hub/classes/producer/miner/blocks/class_BaseBlockProducer.php
application/hub/classes/producer/miner/class_BaseMinerProducer.php
application/hub/classes/recipient/class_BaseRecipient.php
application/hub/classes/resolver/protocol/class_BaseProtocolResolver.php
application/hub/classes/resolver/state/class_BaseStateResolver.php
application/hub/classes/source/class_BaseSource.php
application/hub/classes/source/class_BaseUrlSource.php
application/hub/classes/states/communicator/class_BaseCommunicatorState.php
application/hub/classes/states/crawler/class_BaseCrawlerState.php
application/hub/classes/states/cruncher/class_BaseCruncherState.php
application/hub/classes/states/dht/class_BaseDhtState.php
application/hub/classes/states/miner/class_BaseMinerState.php
application/hub/classes/states/node/class_BaseNodeState.php
application/hub/classes/states/peer/class_BasePeerState.php
application/hub/classes/tags/class_BaseTag.php
application/hub/classes/tasks/class_BaseHubTask.php
application/hub/classes/tasks/crawler/class_BaseUrlSourceTask.php
application/hub/classes/template/answer/class_BaseXmlAnswerTemplateEngine.php
application/hub/classes/template/class_BaseXmlTemplateEngine.php
core

index df604326b33de9696dad7782b2f7bf0a0646a1d3..3da31cd29762d83debda9b46a416ba0ef9472189 100644 (file)
@@ -54,26 +54,6 @@ use Org\Mxchange\CoreFramework\Template\CompileableTemplate;
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 class ApplicationHelper extends BaseApplication implements ManageableApplication, Registerable {
-       /**
-        * The version number of this application
-        */
-       private $appVersion = '';
-
-       /**
-        * The human-readable name for this application
-        */
-       private $appName = '';
-
-       /**
-        * The short uni*-like name for this application
-        */
-       private $shortName = '';
-
-       /**
-        * An instance of this class
-        */
-       private static $selfInstance = NULL;
-
        /**
         * Private constructor
         *
@@ -91,71 +71,12 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
         */
        public static final function getSelfInstance () {
                // Is the instance there?
-               if (is_null(self::$selfInstance)) {
-                       self::$selfInstance = new ApplicationHelper();
+               if (is_null(self::getApplicationInstance())) {
+                       self::setApplicationInstance(new ApplicationHelper());
                } // END - if
 
                // Return the instance
-               return self::$selfInstance;
-       }
-
-       /**
-        * Getter for the version number
-        *
-        * @return      $appVersion     The application's version number
-        */
-       public final function getAppVersion () {
-               return $this->appVersion;
-       }
-       /**
-        * Setter for the version number
-        *
-        * @param       $appVersion     The application's version number
-        * @return      void
-        */
-       public final function setAppVersion ($appVersion) {
-               // Cast and set it
-               $this->appVersion = (string) $appVersion;
-       }
-
-       /**
-        * Getter for human-readable name
-        *
-        * @return      $appName        The application's human-readable name
-        */
-       public final function getAppName () {
-               return $this->appName;
-       }
-
-       /**
-        * Setter for human-readable name
-        *
-        * @param       $appName        The application's human-readable name
-        * @return      void
-        */
-       public final function setAppName ($appName) {
-               // Cast and set it
-               $this->appName = (string) $appName;;
-       }
-
-       /**
-        * Getter for short uni*-like name
-        *
-        * @return      $shortName      The application's short uni*-like name
-        */
-       public final function getAppShortName () {
-               return $this->shortName;
-       }
-
-       /**
-        * Setter for short uni*-like name
-        *
-        * @param       $shortName      The application's short uni*-like name
-        * @return      void
-        */
-       public final function setAppShortName ($shortName) {
-               // Cast and set it
-               $this->shortName = (string) $shortName;
+               return self::getApplicationInstance();
        }
 
        /**
index b549e0ccea2aa6a2e3f641d669dfdb04eaac0c9f..474b0410de75f51ea6fb742c53caca8f87bee1cb 100644 (file)
@@ -39,7 +39,7 @@ abstract class BaseNodeAptProxy extends BaseHubSystem {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 6d5aec6dffbe74062ebee992a562fd1558ade8d8..ed0bf261ed7e64585a3592567e878e021772de02 100644 (file)
@@ -34,7 +34,7 @@ abstract class BaseBlock extends BaseHubSystem {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index bbe184dc600cba59427fd6ea0c1c87ac8854f546..9c7294219419987f701e838da000916b9c3aa901 100644 (file)
@@ -39,7 +39,7 @@ abstract class BaseNodeChat extends BaseHubSystem {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 8cff4df0496684ab4182260acdf6fe207489ceb8..656d46930b5105da799c14e81a2857b7aba80be0 100644 (file)
@@ -34,7 +34,7 @@ abstract class Base??? extends BaseHubSystem {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 28a5026108fd61ddadd0fe7a3429268adf277fbc..db95f3288d1a88f6558484e478d2112d4ccb4178 100644 (file)
@@ -66,7 +66,7 @@ abstract class BaseHubSystem extends BaseFrameworkSystem implements HubInterface
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 149f5c232a1dadeadd6ea9684ea58e1b28982d40..1c0956e5bcb6039c7f598fdeb38974fdf543fdbb 100644 (file)
@@ -38,7 +38,7 @@ abstract class BaseCommunicator extends BaseHubSystem {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
 
index 4914ac264d20810a839ddd72c8ddb35c69172a08..3e842fc44f6e1572660577d224e92d479a81795e 100644 (file)
@@ -56,7 +56,7 @@ abstract class BaseHubContainer extends BaseContainer implements HubInterface {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-HUB-CONTAINER: className=%s - CONSTRUCTED!', $className));
                parent::__construct($className);
index ac2d34719ff890f8271ad7cdcb30a8ebbd634088..1a37d10496a18a3f241a309989db00ef2d550e5f 100644 (file)
@@ -44,7 +44,7 @@ abstract class BaseNodeCrawler extends BaseHubSystem {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
 
index 59c348f05fbbea4d5cef8a727e24e0f7cca205a1..7aba23ca434537c97a85208c597ad608b8d2a098 100644 (file)
@@ -65,7 +65,7 @@ abstract class BaseHubCruncher extends BaseHubSystem implements Updateable {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
 
index 85554a15d984aba481f4eb4ba1ef42e7126fe63c..67373b655db001b1cf8bd7e0ea8efbec16e2dc16 100644 (file)
@@ -62,7 +62,7 @@ abstract class BaseHubDatabaseWrapper extends BaseDatabaseWrapper implements Hub
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 6ecb17fe4a91f6cbc5a41132b5a071b4fb9cf6b4..676c091c4026d33c996ca8d4f9d78e22658bdb94 100644 (file)
@@ -40,7 +40,7 @@ abstract class BaseDecoder extends BaseHubSystem {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index dc6ba5a00daf4224582eb45e2ae27adfc9ee91f2..20432b4a18d118d13567c70f3a82d2653379127d 100644 (file)
@@ -52,7 +52,7 @@ abstract class BaseDht extends BaseHubSystem implements Distributable {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
 
index 21b8ec00b060da6145524f8b4d993cd63e126650..f3b9626c6a039286a96601dc74b80268f824659d 100644 (file)
@@ -38,7 +38,7 @@ abstract class BaseNodeDiscovery extends BaseDiscovery implements Discoverable {
         * @param       $className      Real class name
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 3c71dc22e79c00196d078c1db8784887fe8e054a..aada8e8386047066998b3a0e5a98515bb906d7e3 100644 (file)
@@ -36,7 +36,7 @@ abstract class BaseRecipientDiscovery extends BaseNodeDiscovery implements Disco
         * @param       $className      Real class name
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
 
index a8f5801f946d70fa275afbd002a6ce5fb463a05c..91152286f220f73a5fe8c34e3298d653d370fe50 100644 (file)
@@ -34,7 +34,7 @@ abstract class BaseAptProxyFilter extends BaseHubFilter {
         * @param       $className      Real name of class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 0082bbd41442a6c45d1f6af318e32b1a5b562870..1e291e2d585fd09e601954cbad2e206e585faa39 100644 (file)
@@ -34,7 +34,7 @@ abstract class BaseChatFilter extends BaseHubFilter {
         * @param       $className      Real name of class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 0779b12050ee617cb9e2c1ef180e8afff8df8edb..0f4fa33d9889199826863f37570fa7a17a3da859 100644 (file)
@@ -34,7 +34,7 @@ abstract class BaseCrawlerFilter extends BaseHubFilter {
         * @param       $className      Real name of class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 4ea246f943414f90c266d103e708127e2f4cde61..3d32fbbe111dc79d8569213dbef7da762c8019bb 100644 (file)
@@ -34,7 +34,7 @@ abstract class BaseCruncherFilter extends BaseHubFilter {
         * @param       $className      Real name of class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 3eaf201637c320c61c369a56e1906fe2d3ab6153..614b069a32d511f54b33f548180ebd944000ebdb 100644 (file)
@@ -45,7 +45,7 @@ abstract class BaseHubFilter extends BaseFilter {
         * @param       $className      Real name of class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 47cc97a4484dde2c2526285933fce11386fd8cfd..8895a863bc14b820a4ac6d7269164c879ae94df2 100644 (file)
@@ -34,7 +34,7 @@ abstract class BaseMinerFilter extends BaseHubFilter {
         * @param       $className      Real name of class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index f8d76f1fb5d3b9d9671d70d59d6ae8deffbe32a9..e72cda9b12cd7668022015b2fe35e77229a24f3f 100644 (file)
@@ -34,7 +34,7 @@ abstract class BaseNodeFilter extends BaseHubFilter {
         * @param       $className      Real name of class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 8c5690b2eb3d74a267b9a40c669ddba1e001a8ac..76f3903d41cd2182e5e2bc6a5d2572de772707cc 100644 (file)
@@ -76,7 +76,7 @@ abstract class BaseHubHandler extends BaseHandler implements Handleable, HubInte
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index e0c13216a0a5adec41793f3cd40ff16b061144a7..fb660a4a1ef9b962a653cd6ea903f529be2e3eaf 100644 (file)
@@ -45,7 +45,7 @@ abstract class BaseAnswerStatusHandler extends BaseDataHandler {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 4d491842448f924f5112422fa56e63fcbc803f06..a1fa1c00104d99ad7f2a39a359a0848e0ebc9417 100644 (file)
@@ -68,7 +68,7 @@ abstract class BaseDataHandler extends BaseHubHandler implements HubInterface {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 742f3791bd23a293ec49758a907d063eaba3a16d..463a7c96349faea302601aaf60b3dfc3a68085cc 100644 (file)
@@ -42,7 +42,7 @@ abstract class BaseMessageHandler extends BaseDataHandler {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 5349b6fcd26068c349b2deae49684328188000ea..d89bc6b4804ad5794b153db1e3045034b9b35081 100644 (file)
@@ -41,7 +41,7 @@ abstract class BaseProtocolHandler extends BaseHubHandler implements HandleableP
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 62c65a34e6fc89e96e62897d627bc25f11b43d1a..2fa8598c72938b50fccdb1b61a1c53bc67b14041 100644 (file)
@@ -46,7 +46,7 @@ abstract class BaseIpV4ProtocolHandler extends BaseProtocolHandler {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 47d55c2bad7cdfb69f1e0191e4ac9ef0eafbce67..96ce1ed5a0575e9c0efe2d622fb5e61be3e47824 100644 (file)
@@ -46,7 +46,7 @@ abstract class BaseRawDataHandler extends BaseHubHandler implements HandleableRa
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('BASE-RAW-DATA-HANDLER: className=%s - CONSTRUCTED!', $className));
                parent::__construct($className);
index d29e8c89ff6129e00fa0c7160a2effe610451751..a4d96251f16c579ef498b34fa70d014209282303 100644 (file)
@@ -49,7 +49,7 @@ class BaseHubSystemHelper extends BaseHubSystem implements HubHelper {
         * @param       $className      Name of the concrete class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index ba6c6c08d623c43857d0fa029c6f7ceed061fdce..f31006a58b41a5fc49d22916298419a3ab187ef6 100644 (file)
@@ -89,7 +89,7 @@ abstract class BaseConnectionHelper extends BaseHubSystemHelper implements Visit
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
 
index 28da8ca1c2f6fa24d20541d94a8bdebfa08b725e..09b2537481d6433f393ff70d10fc7eaf9728efc9 100644 (file)
@@ -42,7 +42,7 @@ abstract class BaseIpV4ConnectionHelper extends BaseConnectionHelper {
         * @param       $className      Name of implementing class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 64596133d484347dd20b8859ea5506a708ddb955..51e6518481d1125f508fc9982fb9923c807c36a4 100644 (file)
@@ -40,7 +40,7 @@ abstract class BaseMessageHelper extends BaseHubSystem {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 46fe7d598bdcea76278a64c940de5d2d39b34a09..cb7102062d34470a7df7b19b3c41d4f558b2ea96 100644 (file)
@@ -40,7 +40,7 @@ abstract class BaseHubAnswerHelper extends BaseNodeHelper {
         * @param       $className      Name of the concrete class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 4e8af42cdf07108d614048cb06183a2843e0db49..c70cfe3062ec2ba4327e70d380d8f43fe3a0d930 100644 (file)
@@ -35,7 +35,7 @@ abstract class BaseNodeHelper extends BaseHubSystemHelper {
         * @param       $className      Name of the concrete class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index ea896ffb8e1b0b26881c4e91d0554123408decdd..94b3f225e78e3f7ab27c6989fb1217e2bd14e3f4 100644 (file)
@@ -34,7 +34,7 @@ abstract class BaseWorkUnitHelper extends BaseHubSystem {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
 
index 98360dbee76fd1b0c069f314363d2a7a80e66ad6..4cfee87e1373b8947d35a264dc4f6828cde6c451 100644 (file)
@@ -34,7 +34,7 @@ abstract class BaseInfo extends BaseHubSystem {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index cee8f34fe8fe9b13f1db810dd5751391a0f938dd..851d2098b2d4686c5cf2b756f94e65906975afdf 100644 (file)
@@ -110,6 +110,64 @@ class ConnectionInfo extends BaseInfo implements ShareableInfo, Registerable {
                return $this->connectionType;
        }
 
+       /**
+        * Getter for protocol name
+        *
+        * @return      $protocolName   Name of used protocol
+        */
+       public final function getProtocolName () {
+               return $this->protocolName;
+       }
+
+       /**
+        * Setter for protocol name
+        *
+        * @param       $protocolName   Name of used protocol
+        * @return      void
+        */
+       protected final function setProtocolName (string $protocolName) {
+               $this->protocolName = $protocolName;
+       }
+
+       /**
+        * Setter for listener instance
+        *
+        * @param       $listenerInstance       A Listenable instance
+        * @return      void
+        */
+       public final function setListenerInstance (Listenable $listenerInstance) {
+               $this->listenerInstance = $listenerInstance;
+       }
+
+       /**
+        * Getter for listener instance
+        *
+        * @return      $listenerInstance       A Listenable instance
+        */
+       public final function getListenerInstance () {
+               return $this->listenerInstance;
+       }
+
+       /**
+        * Getter for address
+        *
+        * @return      $address        Address from shared information
+        */
+       public final function getAddress () {
+               // Return it from generic array
+               return $this->getGenericArrayElement('connection', 'dummy', 'dummy', LocateableNode::UNL_PART_ADDRESS);
+       }
+
+       /**
+        * Getter for port
+        *
+        * @return      $port   Port from shared information
+        */
+       public final function getPort () {
+               // Return it from generic array
+               return $this->getGenericArrayElement('connection', 'dummy', 'dummy', LocateableNode::UNL_PART_PORT);
+       }
+
        /**
         * Fills the information class with data from a Listenable instance
         *
@@ -118,16 +176,16 @@ class ConnectionInfo extends BaseInfo implements ShareableInfo, Registerable {
         */
        public function fillWithListenerInformation (Listenable $listenerInstance) {
                // Fill the generic array with several data from the listener:
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-INFO: protocolName=' . $listenerInstance->getProtocolName() . ',listenerInstance=' . $listenerInstance->__toString() . ' - CALLED!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-INFO: protocolName=%s,listenerInstance=%s - CALLED!', $listenerInstance->getProtocolName(), $listenerInstance->__toString()));
                $this->setProtocolName($listenerInstance->getProtocolName());
-               $this->setGenericArrayElement('connection', 'dummy', 'dummy', LocateableNode::UNL_PART_ADDRESS , $listenerInstance->getListenAddress());
-               $this->setGenericArrayElement('connection', 'dummy', 'dummy', LocateableNode::UNL_PART_PORT    , $listenerInstance->getListenPort());
+               $this->setGenericArrayElement('connection', 'dummy', 'dummy', LocateableNode::UNL_PART_ADDRESS, $listenerInstance->getListenAddress());
+               $this->setGenericArrayElement('connection', 'dummy', 'dummy', LocateableNode::UNL_PART_PORT   , $listenerInstance->getListenPort());
 
                // Set listener here
                $this->setListenerInstance($listenerInstance);
 
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-INFO: EXIT!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-INFO: EXIT!');
        }
 
        /**
@@ -138,16 +196,16 @@ class ConnectionInfo extends BaseInfo implements ShareableInfo, Registerable {
         */
        public function fillWithConnectionHelperInformation (ConnectionHelper $helperInstance) {
                // Fill the generic array with several data from the listener:
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-INFO: protocolName=' . $helperInstance->getProtocolName() . ',helperInstance=' . $helperInstance->__toString() . ',socketResource=' . $helperInstance->getSocketResource() . ' - CALLED!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('CONNECTION-INFO: protocolName=%s,helperInstance=%s,socketResource=%s - CALLED!', $helperInstance->getProtocolName(), $helperInstance->__toString(), $helperInstance->getSocketResource()));
                $this->setProtocolName($helperInstance->getSocketInstance()->getSocketProtocol());
-               $this->setGenericArrayElement('connection', 'dummy', 'dummy', LocateableNode::UNL_PART_ADDRESS , $helperInstance->getSocketInstance()->getSocketRecipientAddress());
-               $this->setGenericArrayElement('connection', 'dummy', 'dummy', LocateableNode::UNL_PART_PORT    , $helperInstance->getSocketInstance()->getSocketRecipientPort());
+               $this->setGenericArrayElement('connection', 'dummy', 'dummy', LocateableNode::UNL_PART_ADDRESS, $helperInstance->getSocketInstance()->getSocketRecipientAddress());
+               $this->setGenericArrayElement('connection', 'dummy', 'dummy', LocateableNode::UNL_PART_PORT   , $helperInstance->getSocketInstance()->getSocketRecipientPort());
 
                // Set helper here
                $this->setHelperInstance($helperInstance);
 
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-INFO: EXIT!');
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-INFO: EXIT!');
        }
 
        /**
@@ -180,65 +238,7 @@ class ConnectionInfo extends BaseInfo implements ShareableInfo, Registerable {
                $this->setSocketInstance($socketInstance);
 
                // Trace message
-               //* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-INFO: EXIT!');
-       }
-
-       /**
-        * Getter for address
-        *
-        * @return      $address        Address from shared information
-        */
-       public final function getAddress () {
-               // Return it from generic array
-               return $this->getGenericArrayElement('connection', 'dummy', 'dummy', LocateableNode::UNL_PART_ADDRESS);
-       }
-
-       /**
-        * Getter for port
-        *
-        * @return      $port   Port from shared information
-        */
-       public final function getPort () {
-               // Return it from generic array
-               return $this->getGenericArrayElement('connection', 'dummy', 'dummy', LocateableNode::UNL_PART_PORT);
-       }
-
-       /**
-        * Getter for protocol name
-        *
-        * @return      $protocolName   Name of used protocol
-        */
-       public final function getProtocolName () {
-               return $this->protocolName;
-       }
-
-       /**
-        * Setter for protocol name
-        *
-        * @param       $protocolName   Name of used protocol
-        * @return      void
-        */
-       protected final function setProtocolName (string $protocolName) {
-               $this->protocolName = $protocolName;
-       }
-
-       /**
-        * Setter for listener instance
-        *
-        * @param       $listenerInstance       A Listenable instance
-        * @return      void
-        */
-       public final function setListenerInstance (Listenable $listenerInstance) {
-               $this->listenerInstance = $listenerInstance;
-       }
-
-       /**
-        * Getter for listener instance
-        *
-        * @return      $listenerInstance       A Listenable instance
-        */
-       public final function getListenerInstance () {
-               return $this->listenerInstance;
+               /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput('CONNECTION-INFO: EXIT!');
        }
 
 }
index cb6a549cfa0cf59a54235b15e34e298b0f768aea..3134a9661ca5e1d20c8be88c08b1a24dd460f672 100644 (file)
@@ -87,7 +87,7 @@ abstract class BaseListener extends BaseHubSystem implements Visitable {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
 
index d185d9d477d41a604fc4794ef98288f6b75e8e59..6918df20152c92d9ea714ae69bf752d93ff6350b 100644 (file)
@@ -63,7 +63,7 @@ abstract class BaseListenerDecorator extends BaseDecorator implements Visitable
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index c44f4387b0786a439a329ebdeb1f044a3a3c48e8..3215bde1ed84847e4c4332205e9b8634a9679743 100644 (file)
@@ -77,7 +77,7 @@ abstract class BaseHubMiner extends BaseHubSystem implements Updateable {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
 
index 238c8a3884daf8e8d45113b92a9f4b71602635a9..2791199c7025cd87aec3a3f234a2525c40d9b886 100644 (file)
@@ -105,7 +105,7 @@ abstract class BaseHubNode extends BaseHubSystem implements Updateable, AddableC
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
 
index 87474f01ab0ed30fe53b1cfaeb278838c5ecf94f..278337cc96959ae65fb80f7a32b122130da0767c 100644 (file)
@@ -52,7 +52,7 @@ abstract class BasePool extends BaseHubSystem implements Poolable, Visitable {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
 
index 377191ba19b58e5b28e080600bb4d8bbfd736c5f..d39dfba80d3514c6c79aae87d29007a1cdaef8dc 100644 (file)
@@ -58,7 +58,7 @@ abstract class BaseProducer extends BaseHubSystem {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
 
index 7efeeb97d118cd41e965336dabfd393cc1de2e10..d030ad19aba93f40aedd7a91a1529bed6fb616de 100644 (file)
@@ -37,7 +37,7 @@ abstract class BaseCruncherProducer extends BaseProducer {
         * @param       $className      Complete class name
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
 
index 309e06d3b18c4ff047d41ec14b6b10fa1213d6e2..644981e616b63119564e4e82f917c598e8326503 100644 (file)
@@ -34,7 +34,7 @@ abstract class BaseKeyProducer extends BaseCruncherProducer {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
 
index 68f4ef9b7a9df4b60c61125ab7f9e8b158b20b6b..542f4e4f29beb463b3ac2aed53045b6ff95e17a5 100644 (file)
@@ -47,7 +47,7 @@ abstract class BaseUnitProducer extends BaseCruncherProducer {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 901be771ac04d51b8473bb9f45ac89526c6fc455..5c1975770459def4dd2df2f49079bb855248a9cb 100644 (file)
@@ -38,7 +38,7 @@ abstract class BaseBlockProducer extends BaseMinerProducer {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 037a109f38ee0678bd8050c5b9da547320257069..fa43624d3bd840ab9a6f5644a12a27b2b6d481c9 100644 (file)
@@ -44,7 +44,7 @@ abstract class BaseMinerProducer extends BaseProducer {
         * @param       $className      Complete class name
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
 
index 21203f611e4a0c08c973dc5d3b95681794e437ed..75ce8de35038daa9a96afd1bc92982ace35d4218 100644 (file)
@@ -34,7 +34,7 @@ abstract class BaseRecipient extends BaseHubSystem {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 3c49e2f3ddb84922c7a9bc0454a199c0bfaa754a..7675c3227894dc96fc858d594e064576c3e16b28 100644 (file)
@@ -39,7 +39,7 @@ abstract class BaseProtocolResolver extends BaseHubSystem implements ProtocolRes
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 8bd11c7ab1b0f20917f447cf64e8e77dac8555ab..a3d1cae902c738f0cee8fdb30cea927cc60dac6b 100644 (file)
@@ -45,7 +45,7 @@ abstract class BaseStateResolver extends BaseResolver {
         * @param       $className      Name of the real class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 5e49280e4d0f6a8ee441e47968a289cfde878488..c8d61f115ce63cf47581f2e8dd1ab6f81a2fea00 100644 (file)
@@ -34,7 +34,7 @@ abstract class BaseSource extends BaseHubSystem {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index a1f74fc8698c1c4af39e5c0bc86afb11db4eb37b..0fe5a8d25959c3315058fdf1eb1d65c045d1f00b 100644 (file)
@@ -45,7 +45,7 @@ abstract class BaseUrlSource extends BaseSource {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 3ab6879a10c9ce13bd239c8cfc8feced71adc8ed..072fe2ddaf2d86c8a61bb971e146475a95982e5b 100644 (file)
@@ -42,7 +42,7 @@ abstract class BaseCommunicatorState extends BaseState {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 956c64af490ef91aa554f9e4b9a00590d27292a5..db30dfb76aea13e84eebc8f11fdfcc04fb4ae146 100644 (file)
@@ -34,7 +34,7 @@ abstract class BaseCrawlerState extends BaseState {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index e484a1eaca8847bb2613d1dd97f384ddbd687ab3..af24a5a64e27d7d6fbf170235d87a333dcf86a39 100644 (file)
@@ -34,7 +34,7 @@ abstract class BaseCruncherState extends BaseState {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index fb5dab1b78d17fafcf3c4861c05ca898afdd2a28..1f50132bfc79ed89d856c50b7c0da360e60e8003 100644 (file)
@@ -35,7 +35,7 @@ abstract class BaseDhtState extends BaseState {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 5ac79417ab61de6fed6533218d3cd421b15231c4..4d7d5f3f217cacc867c7246216792c5a018eadd9 100644 (file)
@@ -38,7 +38,7 @@ abstract class BaseMinerState extends BaseState {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 3414cc248306ef7247ce2e03be50bc1f153fe419..432b027c0aa5e4fe0b4cbcd47d586f540e2e0275 100644 (file)
@@ -34,7 +34,7 @@ abstract class BaseNodeState extends BaseState {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 9ea49adfde965f376d986eb3296cc2c0277dcfe2..931a055d0b6215bd01620a2ecf30cb67607f0699 100644 (file)
@@ -34,7 +34,7 @@ abstract class BasePeerState extends BaseState {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 09bf4faeed591c9617f88d360c9e9f51110795e4..0f21e5c91a1c81be7a677bd429e5654f403778bb 100644 (file)
@@ -42,7 +42,7 @@ abstract class BaseTag extends BaseHubSystem implements Registerable {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 8b944aa10f0a2ed976dc37874f80f3c240178ea5..dc0470e595177a34af609f39c600727e04698862 100644 (file)
@@ -43,7 +43,7 @@ abstract class BaseHubTask extends BaseTask {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 6e97311047a54b9bc4665fafb3fbfae815f9931b..bcbe41c9540cad12b6cd582cbf88381d96fdc823 100644 (file)
@@ -45,7 +45,7 @@ abstract class BaseUrlSourceTask extends BaseHubTask {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index 5f4cb60e311fec94c8d37c097d16f2ce0b9f92a5..f5f2e3961e1df403a28b43a21f6885367f8885e7 100644 (file)
@@ -44,7 +44,7 @@ abstract class BaseXmlAnswerTemplateEngine extends BaseXmlTemplateEngine impleme
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
index b86515537eb1d75ce59a881b0e7721eaabca2a0f..1a6c627edd7bbe5d76e55cfc71fd814e8967993e 100644 (file)
@@ -77,7 +77,7 @@ abstract class BaseXmlTemplateEngine extends BaseTemplateEngine {
         * @param       $className      Name of the class
         * @return      void
         */
-       protected function __construct ($className) {
+       protected function __construct (string $className) {
                // Call parent constructor
                parent::__construct($className);
        }
diff --git a/core b/core
index c15d02389e67a880e7b4c6b19f2b06722efa4e6f..c1aadb61b45c15273c07c366887c8f58c53155e3 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit c15d02389e67a880e7b4c6b19f2b06722efa4e6f
+Subproject commit c1aadb61b45c15273c07c366887c8f58c53155e3