]> git.mxchange.org Git - hub.git/commitdiff
Refacturing to pass a ProtocolHandler instance instead of the direct name. This
authorRoland Haeder <roland@mxchange.org>
Wed, 8 Oct 2014 21:44:04 +0000 (23:44 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 17 Oct 2014 22:46:14 +0000 (00:46 +0200)
makes the code more flexible to other protocol handlers including FAX
"connections" and many fancy stuff more.

This refacuring is not complete.

Signed-off-by: Roland Haeder <roland@mxchange.org>
application/hub/main/class_BaseHubSystem.php

index f41ac725c436f6183ff6dd90a3fb2c0dcd007d8d..fef2f6ebb80c671b434666d85777f3d8329e684a 100644 (file)
@@ -703,6 +703,25 @@ class BaseHubSystem extends BaseFrameworkSystem {
                // Return result
                return $stateName;
        }
+
+       /**
+        * 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;
+       }
 }
 
 // [EOF]