From 2bc46408255b2f45b9116c3271b65c877f2b7fd3 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 29 Jun 2015 02:39:56 +0200 Subject: [PATCH] Added protocolName from BaseHubSystem as classes outside 'hub' will need it MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../main/class_BaseFrameworkSystem.php | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index 8c459c5d..56b1cbfa 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -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 -- 2.39.2