Added protocolName from BaseHubSystem as classes outside 'hub' will need it
authorRoland Haeder <roland@mxchange.org>
Mon, 29 Jun 2015 00:39:56 +0000 (02:39 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 29 Jun 2015 00:39:56 +0000 (02:39 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/main/class_BaseFrameworkSystem.php

index 8c459c5d3a334af0238cc72930f8e3fb8a7e34b4..56b1cbfa36bd25465069feb27892b74181983c29 100644 (file)
@@ -263,6 +263,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         */
        private $controllerName = '';
 
+       /**
+        * Name of used protocol
+        */
+       private $protocolName = 'invalid';
+
        /**
         * Array with bitmasks and such for pack/unpack methods to support both
         * 32-bit and 64-bit systems
@@ -1595,6 +1600,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                return $this->controllerName;
        }
 
+       /**
+        * 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 ($protocolName) {
+               $this->protocolName = $protocolName;
+       }
+
        /**
         * Checks whether an object equals this object. You should overwrite this
         * method to implement own equality checks