From 51213341881079696d63ff9028c01a75d5fe7714 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 6 Dec 2020 06:54:05 +0100 Subject: [PATCH] Continued: - removed all .htaccess files, please secure it on your own on server-side's configuration - introduced LocateableNodeTrait, so far only used in BaseProtocolHandler MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- application/.htaccess | 1 - application/hub/.htaccess | 1 - application/hub/classes/apt-proxy/class_ | 2 +- application/hub/classes/chat/class_ | 2 +- application/hub/classes/crawler/class_ | 2 +- application/hub/classes/cruncher/class_ | 2 +- application/hub/classes/decoder/class_ | 6 +- application/hub/classes/dht/class_ | 6 +- application/hub/classes/discovery/class_ | 2 +- .../hub/classes/discovery/recipient/class_ | 4 +- application/hub/classes/factories/class_ | 2 +- .../activation/node/class_NodeActivation | 6 +- .../apt-proxy/class_AptProxyBootstrap | 2 +- .../filter/bootstrap/chat/class_ChatBootstrap | 2 +- .../bootstrap/crawler/class_CrawlerBootstrap | 2 +- .../cruncher/class_CruncherBootstrap | 2 +- .../bootstrap/miner/class_MinerBootstrap | 2 +- .../filter/bootstrap/node/class_NodeBootstrap | 6 +- .../hub/classes/filter/chat/class_Chat | 2 +- application/hub/classes/filter/class_ | 6 +- .../classes/filter/cruncher/class_Cruncher | 2 +- .../hub/classes/filter/miner/class_Miner | 2 +- .../hub/classes/filter/node/class_Node | 4 +- .../filter/shutdown/node/class_NodeShutdown | 6 +- .../classes/handler/class_BaseHubHandler.php | 27 --------- application/hub/classes/handler/data/class_ | 4 +- .../classes/handler/data/message-types/class_ | 2 +- .../hub/classes/handler/protocol/class_ | 6 +- .../protocol/class_BaseProtocolHandler.php | 4 ++ .../hub/classes/handler/protocol/ipv4/class_ | 4 +- .../hub/classes/handler/raw_data/class_ | 6 +- .../hub/classes/handler/raw_data/tcp/class_ | 8 +-- application/hub/classes/helper/class_ | 8 +-- .../hub/classes/helper/connection/class_ | 6 +- application/hub/classes/helper/node/class_ | 12 ++-- application/hub/classes/info/class_ | 6 +- .../iterator/pool/handler/class_Handler | 2 +- .../iterator/pool/shutdown/class_Shutdown | 2 +- application/hub/classes/listener/class_ | 6 +- application/hub/classes/listener/tcp/class_ | 8 +-- application/hub/classes/listener/udp/class_ | 8 +-- application/hub/classes/miner/class_ | 2 +- application/hub/classes/nodes/class_ | 6 +- application/hub/classes/pools/class_ | 8 +-- application/hub/classes/recipient/class_ | 4 +- .../hub/classes/resolver/protocol/class_ | 8 +-- .../states/communicator/class_Communicator | 2 +- .../hub/classes/states/crawler/class_Crawler | 2 +- .../classes/states/cruncher/class_Cruncher | 2 +- application/hub/classes/states/dht/class_Dht | 4 +- .../hub/classes/states/miner/class_Miner | 2 +- .../hub/classes/states/node/class_Node | 4 +- application/hub/classes/states/peer/class_ | 6 +- application/hub/classes/tags/class_ | 6 +- .../hub/classes/tasks/apt-proxy/class_ | 2 +- application/hub/classes/tasks/chat/class_ | 2 +- .../hub/classes/tasks/crawler/class_Crawler | 2 +- .../crawler/url_source/class_CrawlerUrlSource | 2 +- .../hub/classes/tasks/cruncher/class_Cruncher | 2 +- .../hub/classes/tasks/miner/class_Miner | 2 +- .../tasks/network/class_NetworkPackage | 2 +- application/hub/classes/tasks/node/class_Node | 2 +- .../hub/classes/tasks/node/dht/class_NodeDht | 2 +- .../hub/classes/template/xml/answer/class_ | 4 +- application/hub/classes/template/xml/class_ | 4 +- application/hub/classes/visitor/pool/class_ | 6 +- .../visitor/pool/handler/class_Handler | 6 +- .../visitor/pool/shutdown/class_Shutdown | 6 +- application/hub/exceptions/.htaccess | 1 - .../hub/exceptions/announcement/.htaccess | 1 - .../hub/exceptions/connection/.htaccess | 1 - application/hub/exceptions/dht/.htaccess | 1 - application/hub/exceptions/factory/.htaccess | 1 - application/hub/exceptions/hub/.htaccess | 1 - application/hub/exceptions/ids/.htaccess | 1 - application/hub/exceptions/lists/.htaccess | 1 - application/hub/exceptions/node/.htaccess | 1 - application/hub/exceptions/package/.htaccess | 1 - application/hub/exceptions/peer/.htaccess | 1 - application/hub/exceptions/requests/.htaccess | 1 - application/hub/exceptions/resolver/.htaccess | 1 - application/hub/exceptions/socket/.htaccess | 1 - application/hub/exceptions/state/.htaccess | 1 - application/hub/exceptions/stream/.htaccess | 1 - application/hub/exceptions/tags/.htaccess | 1 - application/hub/exceptions/tasks/.htaccess | 1 - application/hub/exceptions/unl/.htaccess | 1 - application/hub/exceptions/wrapper/.htaccess | 1 - application/hub/interfaces/.htaccess | 1 - .../hub/interfaces/apt-proxy/.htaccess | 1 - application/hub/interfaces/blocks/.htaccess | 1 - application/hub/interfaces/chat/.htaccess | 1 - .../hub/interfaces/communicator/.htaccess | 1 - application/hub/interfaces/consumer/.htaccess | 1 - .../hub/interfaces/container/.htaccess | 1 - .../hub/interfaces/container/socket/.htaccess | 1 - application/hub/interfaces/crawler/.htaccess | 1 - application/hub/interfaces/cruncher/.htaccess | 1 - application/hub/interfaces/database/.htaccess | 1 - .../interfaces/database/frontend/.htaccess | 1 - application/hub/interfaces/decoder/.htaccess | 1 - application/hub/interfaces/delivery/.htaccess | 1 - .../interfaces/delivery/fragmenter/.htaccess | 1 - .../interfaces/delivery/messages/.htaccess | 1 - .../hub/interfaces/discovery/.htaccess | 1 - .../interfaces/discovery/class_Discoverable | 2 +- .../interfaces/discovery/protocol/.htaccess | 1 - .../interfaces/discovery/recipient/.htaccess | 1 - .../discovery/recipient/dht/.htaccess | 1 - .../discovery/recipient/node/.htaccess | 1 - .../discovery/recipient/socket/.htaccess | 1 - .../hub/interfaces/discovery/unl/.htaccess | 1 - .../hub/interfaces/distributable/.htaccess | 1 - .../interfaces/distributable/node/.htaccess | 1 - application/hub/interfaces/filter/.htaccess | 1 - application/hub/interfaces/handler/.htaccess | 1 - .../handler/answer-status/.htaccess | 1 - .../hub/interfaces/handler/chunks/.htaccess | 1 - .../handler/message-types/.htaccess | 1 - .../hub/interfaces/handler/network/.htaccess | 1 - .../hub/interfaces/handler/protocol/.htaccess | 1 - .../hub/interfaces/handler/raw-data/.htaccess | 1 - application/hub/interfaces/helper/.htaccess | 1 - .../interfaces/helper/connections/.htaccess | 1 - .../hub/interfaces/helper/dht/.htaccess | 1 - .../hub/interfaces/helper/hub/.htaccess | 1 - .../hub/interfaces/helper/messages/.htaccess | 1 - .../hub/interfaces/helper/node/.htaccess | 1 - application/hub/interfaces/listener/.htaccess | 1 - application/hub/interfaces/locator/.htaccess | 1 - application/hub/interfaces/lookup/.htaccess | 1 - .../interfaces/lookup/node_states/.htaccess | 1 - .../interfaces/lookup/peer_states/.htaccess | 1 - application/hub/interfaces/miner/.htaccess | 1 - application/hub/interfaces/nodes/.htaccess | 1 - application/hub/interfaces/pool/.htaccess | 1 - .../hub/interfaces/pool/listener/.htaccess | 1 - .../hub/interfaces/pool/peer/.htaccess | 1 - application/hub/interfaces/producer/.htaccess | 1 - .../hub/interfaces/producer/block/.htaccess | 1 - .../hub/interfaces/producer/keys/.htaccess | 1 - .../interfaces/producer/work_units/.htaccess | 1 - application/hub/interfaces/protocol/.htaccess | 1 - application/hub/interfaces/query/.htaccess | 1 - application/hub/interfaces/queues/.htaccess | 1 - application/hub/interfaces/receiver/.htaccess | 1 - .../interfaces/receiver/assembler/.htaccess | 1 - .../hub/interfaces/recipient/.htaccess | 1 - application/hub/interfaces/registry/.htaccess | 1 - .../hub/interfaces/registry/socket/.htaccess | 1 - application/hub/interfaces/resolver/.htaccess | 1 - .../hub/interfaces/resolver/state/.htaccess | 1 - .../hub/interfaces/shareable/.htaccess | 1 - .../hub/interfaces/shareable/info/.htaccess | 1 - application/hub/interfaces/socket/.htaccess | 1 - application/hub/interfaces/source/.htaccess | 1 - .../hub/interfaces/source/units/.htaccess | 1 - .../hub/interfaces/source/urls/.htaccess | 1 - application/hub/interfaces/states/.htaccess | 1 - .../hub/interfaces/states/client/.htaccess | 1 - .../hub/interfaces/states/hub/.htaccess | 1 - .../hub/interfaces/states/peer/.htaccess | 1 - application/hub/interfaces/tags/.htaccess | 1 - application/hub/interfaces/visitor/.htaccess | 1 - .../interfaces/visitor/connector/.htaccess | 1 - .../hub/interfaces/visitor/listener/.htaccess | 1 - .../hub/interfaces/visitor/pool/.htaccess | 1 - .../visitor/pool/listener/.htaccess | 1 - .../hub/interfaces/visitor/query/.htaccess | 1 - .../hub/interfaces/visitor/queue/.htaccess | 1 - .../hub/interfaces/work_units/.htaccess | 1 - application/hub/language/.htaccess | 1 - application/hub/templates/.htaccess | 1 - application/hub/templates/de/.htaccess | 1 - application/hub/templates/de/code/.htaccess | 1 - application/hub/templates/de/menu/.htaccess | 1 - application/hub/templates/xml/.htaccess | 1 - .../hub/templates/xml/announcement/.htaccess | 1 - .../hub/templates/xml/answer/.htaccess | 1 - .../xml/answer/announcement/.htaccess | 1 - .../xml/answer/dht_bootstrap/.htaccess | 1 - .../templates/xml/answer/requests/.htaccess | 1 - .../hub/templates/xml/cruncher/.htaccess | 1 - .../templates/xml/cruncher/producer/.htaccess | 1 - .../hub/templates/xml/dht_bootstrap/.htaccess | 1 - .../hub/templates/xml/dht_publish/.htaccess | 1 - .../hub/templates/xml/entries/.htaccess | 1 - application/hub/templates/xml/node/.htaccess | 1 - .../templates/xml/object_registry/.htaccess | 1 - .../hub/templates/xml/requests/.htaccess | 1 - .../hub/templates/xml/self_connect/.htaccess | 1 - .../locator/class_LocateableNodeTrait.php | 57 +++++++++++++++++++ 192 files changed, 192 insertions(+), 282 deletions(-) delete mode 100644 application/.htaccess delete mode 100644 application/hub/.htaccess delete mode 100644 application/hub/exceptions/.htaccess delete mode 100644 application/hub/exceptions/announcement/.htaccess delete mode 100644 application/hub/exceptions/connection/.htaccess delete mode 100644 application/hub/exceptions/dht/.htaccess delete mode 100644 application/hub/exceptions/factory/.htaccess delete mode 100644 application/hub/exceptions/hub/.htaccess delete mode 100644 application/hub/exceptions/ids/.htaccess delete mode 100644 application/hub/exceptions/lists/.htaccess delete mode 100644 application/hub/exceptions/node/.htaccess delete mode 100644 application/hub/exceptions/package/.htaccess delete mode 100644 application/hub/exceptions/peer/.htaccess delete mode 100644 application/hub/exceptions/requests/.htaccess delete mode 100644 application/hub/exceptions/resolver/.htaccess delete mode 100644 application/hub/exceptions/socket/.htaccess delete mode 100644 application/hub/exceptions/state/.htaccess delete mode 100644 application/hub/exceptions/stream/.htaccess delete mode 100644 application/hub/exceptions/tags/.htaccess delete mode 100644 application/hub/exceptions/tasks/.htaccess delete mode 100644 application/hub/exceptions/unl/.htaccess delete mode 100644 application/hub/exceptions/wrapper/.htaccess delete mode 100644 application/hub/interfaces/.htaccess delete mode 100644 application/hub/interfaces/apt-proxy/.htaccess delete mode 100644 application/hub/interfaces/blocks/.htaccess delete mode 100644 application/hub/interfaces/chat/.htaccess delete mode 100644 application/hub/interfaces/communicator/.htaccess delete mode 100644 application/hub/interfaces/consumer/.htaccess delete mode 100644 application/hub/interfaces/container/.htaccess delete mode 100644 application/hub/interfaces/container/socket/.htaccess delete mode 100644 application/hub/interfaces/crawler/.htaccess delete mode 100644 application/hub/interfaces/cruncher/.htaccess delete mode 100644 application/hub/interfaces/database/.htaccess delete mode 100644 application/hub/interfaces/database/frontend/.htaccess delete mode 100644 application/hub/interfaces/decoder/.htaccess delete mode 100644 application/hub/interfaces/delivery/.htaccess delete mode 100644 application/hub/interfaces/delivery/fragmenter/.htaccess delete mode 100644 application/hub/interfaces/delivery/messages/.htaccess delete mode 100644 application/hub/interfaces/discovery/.htaccess delete mode 100644 application/hub/interfaces/discovery/protocol/.htaccess delete mode 100644 application/hub/interfaces/discovery/recipient/.htaccess delete mode 100644 application/hub/interfaces/discovery/recipient/dht/.htaccess delete mode 100644 application/hub/interfaces/discovery/recipient/node/.htaccess delete mode 100644 application/hub/interfaces/discovery/recipient/socket/.htaccess delete mode 100644 application/hub/interfaces/discovery/unl/.htaccess delete mode 100644 application/hub/interfaces/distributable/.htaccess delete mode 100644 application/hub/interfaces/distributable/node/.htaccess delete mode 100644 application/hub/interfaces/filter/.htaccess delete mode 100644 application/hub/interfaces/handler/.htaccess delete mode 100644 application/hub/interfaces/handler/answer-status/.htaccess delete mode 100644 application/hub/interfaces/handler/chunks/.htaccess delete mode 100644 application/hub/interfaces/handler/message-types/.htaccess delete mode 100644 application/hub/interfaces/handler/network/.htaccess delete mode 100644 application/hub/interfaces/handler/protocol/.htaccess delete mode 100644 application/hub/interfaces/handler/raw-data/.htaccess delete mode 100644 application/hub/interfaces/helper/.htaccess delete mode 100644 application/hub/interfaces/helper/connections/.htaccess delete mode 100644 application/hub/interfaces/helper/dht/.htaccess delete mode 100644 application/hub/interfaces/helper/hub/.htaccess delete mode 100644 application/hub/interfaces/helper/messages/.htaccess delete mode 100644 application/hub/interfaces/helper/node/.htaccess delete mode 100644 application/hub/interfaces/listener/.htaccess delete mode 100644 application/hub/interfaces/locator/.htaccess delete mode 100644 application/hub/interfaces/lookup/.htaccess delete mode 100644 application/hub/interfaces/lookup/node_states/.htaccess delete mode 100644 application/hub/interfaces/lookup/peer_states/.htaccess delete mode 100644 application/hub/interfaces/miner/.htaccess delete mode 100644 application/hub/interfaces/nodes/.htaccess delete mode 100644 application/hub/interfaces/pool/.htaccess delete mode 100644 application/hub/interfaces/pool/listener/.htaccess delete mode 100644 application/hub/interfaces/pool/peer/.htaccess delete mode 100644 application/hub/interfaces/producer/.htaccess delete mode 100644 application/hub/interfaces/producer/block/.htaccess delete mode 100644 application/hub/interfaces/producer/keys/.htaccess delete mode 100644 application/hub/interfaces/producer/work_units/.htaccess delete mode 100644 application/hub/interfaces/protocol/.htaccess delete mode 100644 application/hub/interfaces/query/.htaccess delete mode 100644 application/hub/interfaces/queues/.htaccess delete mode 100644 application/hub/interfaces/receiver/.htaccess delete mode 100644 application/hub/interfaces/receiver/assembler/.htaccess delete mode 100644 application/hub/interfaces/recipient/.htaccess delete mode 100644 application/hub/interfaces/registry/.htaccess delete mode 100644 application/hub/interfaces/registry/socket/.htaccess delete mode 100644 application/hub/interfaces/resolver/.htaccess delete mode 100644 application/hub/interfaces/resolver/state/.htaccess delete mode 100644 application/hub/interfaces/shareable/.htaccess delete mode 100644 application/hub/interfaces/shareable/info/.htaccess delete mode 100644 application/hub/interfaces/socket/.htaccess delete mode 100644 application/hub/interfaces/source/.htaccess delete mode 100644 application/hub/interfaces/source/units/.htaccess delete mode 100644 application/hub/interfaces/source/urls/.htaccess delete mode 100644 application/hub/interfaces/states/.htaccess delete mode 100644 application/hub/interfaces/states/client/.htaccess delete mode 100644 application/hub/interfaces/states/hub/.htaccess delete mode 100644 application/hub/interfaces/states/peer/.htaccess delete mode 100644 application/hub/interfaces/tags/.htaccess delete mode 100644 application/hub/interfaces/visitor/.htaccess delete mode 100644 application/hub/interfaces/visitor/connector/.htaccess delete mode 100644 application/hub/interfaces/visitor/listener/.htaccess delete mode 100644 application/hub/interfaces/visitor/pool/.htaccess delete mode 100644 application/hub/interfaces/visitor/pool/listener/.htaccess delete mode 100644 application/hub/interfaces/visitor/query/.htaccess delete mode 100644 application/hub/interfaces/visitor/queue/.htaccess delete mode 100644 application/hub/interfaces/work_units/.htaccess delete mode 100644 application/hub/language/.htaccess delete mode 100644 application/hub/templates/.htaccess delete mode 100644 application/hub/templates/de/.htaccess delete mode 100644 application/hub/templates/de/code/.htaccess delete mode 100644 application/hub/templates/de/menu/.htaccess delete mode 100644 application/hub/templates/xml/.htaccess delete mode 100644 application/hub/templates/xml/announcement/.htaccess delete mode 100644 application/hub/templates/xml/answer/.htaccess delete mode 100644 application/hub/templates/xml/answer/announcement/.htaccess delete mode 100644 application/hub/templates/xml/answer/dht_bootstrap/.htaccess delete mode 100644 application/hub/templates/xml/answer/requests/.htaccess delete mode 100644 application/hub/templates/xml/cruncher/.htaccess delete mode 100644 application/hub/templates/xml/cruncher/producer/.htaccess delete mode 100644 application/hub/templates/xml/dht_bootstrap/.htaccess delete mode 100644 application/hub/templates/xml/dht_publish/.htaccess delete mode 100644 application/hub/templates/xml/entries/.htaccess delete mode 100644 application/hub/templates/xml/node/.htaccess delete mode 100644 application/hub/templates/xml/object_registry/.htaccess delete mode 100644 application/hub/templates/xml/requests/.htaccess delete mode 100644 application/hub/templates/xml/self_connect/.htaccess create mode 100644 application/hub/traits/locator/class_LocateableNodeTrait.php diff --git a/application/.htaccess b/application/.htaccess deleted file mode 100644 index 3a4288278..000000000 --- a/application/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all diff --git a/application/hub/.htaccess b/application/hub/.htaccess deleted file mode 100644 index 3a4288278..000000000 --- a/application/hub/.htaccess +++ /dev/null @@ -1 +0,0 @@ -Deny from all diff --git a/application/hub/classes/apt-proxy/class_ b/application/hub/classes/apt-proxy/class_ index 7a6c4dc7d..0f71e6510 100644 --- a/application/hub/classes/apt-proxy/class_ +++ b/application/hub/classes/apt-proxy/class_ @@ -1,6 +1,6 @@ listenerPoolInstance; } - /** - * Setter for UNL instance - * - * @para $locatorInstance An instance of a LocateableNode class - * @return void - */ - protected final function setUniversalNodeLocatorInstance (LocateableNode $locatorInstance) { - // Set new UNL data array - $this->universalNodeLocatorInstance = $locatorInstance; - } - - /** - * Getter for UNL instance - * - * @return $unlData An instance of a LocateableNode class - */ - public final function getUniversalNodeLocatorInstance () { - // Return UNL data array - return $this->universalNodeLocatorInstance; - } - /** * Setter for assembler instance * diff --git a/application/hub/classes/handler/data/class_ b/application/hub/classes/handler/data/class_ index b4d610de1..724cccdb0 100644 --- a/application/hub/classes/handler/data/class_ +++ b/application/hub/classes/handler/data/class_ @@ -1,9 +1,9 @@ . */ abstract class BaseProtocolHandler extends BaseHubHandler implements HandleableProtocol { + // Load traits + use LocateableNodeTrait; + /** * Name of used protocol */ diff --git a/application/hub/classes/handler/protocol/ipv4/class_ b/application/hub/classes/handler/protocol/ipv4/class_ index b9f867670..3abda0aab 100644 --- a/application/hub/classes/handler/protocol/ipv4/class_ +++ b/application/hub/classes/handler/protocol/ipv4/class_ @@ -1,9 +1,9 @@ // Own namespace -namespace Org\Mxchange\Hub\Listener\; +namespace Org\Shipsimu\Hub\Listener\; // Import application-specific stuff -use Org\Mxchange\Hub\Listener\BaseListener; -use Org\Mxchange\Hub\Listener\Listenable; -use Org\Mxchange\Hub\Node\Node; +use Org\Shipsimu\Hub\Listener\BaseListener; +use Org\Shipsimu\Hub\Listener\Listenable; +use Org\Shipsimu\Hub\Node\Node; // Import framework stuff use Org\Mxchange\CoreFramework\Visitor\Visitable; diff --git a/application/hub/classes/helper/class_ b/application/hub/classes/helper/class_ index 8d206fcfd..102f93e9e 100644 --- a/application/hub/classes/helper/class_ +++ b/application/hub/classes/helper/class_ @@ -1,11 +1,11 @@ // Own namespace -namespace Org\Mxchange\Hub\Listener\Tcp\; +namespace Org\Shipsimu\Hub\Listener\Tcp\; // Import application-specific stuff -use Org\Mxchange\Hub\Node\Node; -use Org\Mxchange\Hub\Listener\BaseListener; -use Org\Mxchange\Hub\Listener\Listenable; +use Org\Shipsimu\Hub\Node\Node; +use Org\Shipsimu\Hub\Listener\BaseListener; +use Org\Shipsimu\Hub\Listener\Listenable; // Import framework stuff use Org\Mxchange\CoreFramework\Visitor\Visitable; diff --git a/application/hub/classes/listener/udp/class_ b/application/hub/classes/listener/udp/class_ index 91aa6a9e2..2a18b47ed 100644 --- a/application/hub/classes/listener/udp/class_ +++ b/application/hub/classes/listener/udp/class_ @@ -1,11 +1,11 @@ + * @version 0.0.0 + * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2018 Hub Developer Team + * @license GNU GPL 3.0 or any newer version + * @link http://www.ship-simu.org + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +trait LocateableNodeTrait { + /** + * An instance of a LocateableNode class + */ + private $universalNodeLocatorInstance = NULL; + + /** + * Setter for UNL instance + * + * @para $locatorInstance An instance of a LocateableNode class + * @return void + */ + protected final function setUniversalNodeLocatorInstance (LocateableNode $locatorInstance) { + // Set new UNL data array + $this->universalNodeLocatorInstance = $locatorInstance; + } + + /** + * Getter for UNL instance + * + * @return $unlData An instance of a LocateableNode class + */ + public final function getUniversalNodeLocatorInstance () { + // Return UNL data array + return $this->universalNodeLocatorInstance; + } + +} -- 2.39.5