From dca99c8d6489e4ad571cd0e729e956375848f511 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 24 Nov 2020 04:23:26 +0100 Subject: [PATCH] Continued: - added missing getter/setter for $searchInstance and local class field - updated core framework MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../hub/classes/nodes/class_BaseHubNode.php | 24 +++++++++++++++++++ .../hub/interfaces/nodes/class_Node.php | 16 +++++++++++++ core | 2 +- 3 files changed, 41 insertions(+), 1 deletion(-) diff --git a/application/hub/classes/nodes/class_BaseHubNode.php b/application/hub/classes/nodes/class_BaseHubNode.php index dbb1adb9f..b1d9e0541 100644 --- a/application/hub/classes/nodes/class_BaseHubNode.php +++ b/application/hub/classes/nodes/class_BaseHubNode.php @@ -99,6 +99,11 @@ abstract class BaseHubNode extends BaseHubSystem implements Updateable, AddableC */ private $listenerPoolInstance = NULL; + /** + * Search criteria instance + */ + private $searchInstance = NULL; + /** * Protected constructor * @@ -914,4 +919,23 @@ abstract class BaseHubNode extends BaseHubSystem implements Updateable, AddableC return $this->listenerPoolInstance; } + /** + * Setter for search instance + * + * @param $searchInstance Searchable criteria instance + * @return void + */ + public final function setSearchInstance (LocalSearchCriteria $searchInstance) { + $this->searchInstance = $searchInstance; + } + + /** + * Getter for search instance + * + * @return $searchInstance Searchable criteria instance + */ + public final function getSearchInstance () { + return $this->searchInstance; + } + } diff --git a/application/hub/interfaces/nodes/class_Node.php b/application/hub/interfaces/nodes/class_Node.php index 807f122e9..ae1a1210c 100644 --- a/application/hub/interfaces/nodes/class_Node.php +++ b/application/hub/interfaces/nodes/class_Node.php @@ -7,6 +7,7 @@ use Org\Shipsimu\Hub\Network\Message\DeliverableMessage; use Org\Shipsimu\Hub\Network\Receive\Receivable; // Import framework stuff +use Org\Mxchange\CoreFramework\Criteria\Local\LocalSearchCriteria; use Org\Mxchange\CoreFramework\Handler\Task\HandleableTask; use Org\Mxchange\CoreFramework\Generic\FrameworkInterface; use Org\Mxchange\CoreFramework\Request\Requestable; @@ -202,4 +203,19 @@ interface Node extends FrameworkInterface { */ function createNodeDataArray (); + /** + * Setter for search instance + * + * @param $searchInstance Searchable criteria instance + * @return void + */ + function setSearchInstance (LocalSearchCriteria $searchInstance); + + /** + * Getter for search instance + * + * @return $searchInstance Searchable criteria instance + */ + function getSearchInstance (); + } diff --git a/core b/core index 8c96c0cfa..8a70226bd 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit 8c96c0cfa128e4d536788feec87d60719db198fa +Subproject commit 8a70226bd287a3f13b27932e2ec88d16c51c7e39 -- 2.39.5