From: Roland Haeder Date: Wed, 8 Oct 2014 21:44:04 +0000 (+0200) Subject: Refacturing to pass a ProtocolHandler instance instead of the direct name. This X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=eb824b703d21d37a0860a4a72db320ed54046e84;p=hub.git Refacturing to pass a ProtocolHandler instance instead of the direct name. This 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 --- diff --git a/application/hub/main/class_BaseHubSystem.php b/application/hub/main/class_BaseHubSystem.php index f41ac725c..fef2f6ebb 100644 --- a/application/hub/main/class_BaseHubSystem.php +++ b/application/hub/main/class_BaseHubSystem.php @@ -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]