]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2020 17:46:55 +0000 (18:46 +0100)
committerRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2020 17:46:55 +0000 (18:46 +0100)
- renamed PackageData:$status to $packageStatus
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
application/hub/classes/handler/package/class_NetworkPackageHandler.php
application/hub/classes/package/deliverable/class_PackageData.php
application/hub/classes/package/fragmenter/class_PackageFragmenter.php
application/hub/interfaces/delivery/package/class_DeliverablePackage.php
core

index 4bc52231ce2d81624d80b3c84f64c6f13ad9b3b6..492248644bfc1d315a9e01e95b91ad3922d0bfe8 100644 (file)
@@ -871,7 +871,7 @@ class NetworkPackageHandler extends BaseHubHandler implements Deliverable, Recei
                $packageInstance->setRecipientType($helperInstance->getRecipientType());
                /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('NETWORK-PACKAGE-HANDLER: Setting packageContent=%s ...', $packageContent));
                $packageInstance->setPackageContent($packageContent);
-               $packageInstance->setStatus(self::PACKAGE_STATUS_NEW);
+               $packageInstance->setPackageStatus(self::PACKAGE_STATUS_NEW);
                $packageInstance->setContentHash($this->generatePackageHash($content, $this->getNodeInstance()->getSessionId()));
                $packageInstance->setSenderPrivateKeyHash($this->getNodeInstance()->getNodePrivateKeyHash());
 
@@ -1389,7 +1389,7 @@ class NetworkPackageHandler extends BaseHubHandler implements Deliverable, Recei
                $packageInstance = $this->getStackInstance()->getNamed(self::STACKER_NAME_DECLARED);
 
                // Is the package status 'failed'?
-               if ($packageInstance->getStatus() != self::PACKAGE_STATUS_FAILED) {
+               if ($packageInstance->getPackageStatus() != self::PACKAGE_STATUS_FAILED) {
                        // Not failed!
                        throw new UnexpectedPackageStatusException(array($this, $packageInstance, self::PACKAGE_STATUS_FAILED), self::EXCEPTION_UNEXPECTED_PACKAGE_STATUS);
                }
@@ -1441,7 +1441,7 @@ class NetworkPackageHandler extends BaseHubHandler implements Deliverable, Recei
                $packageInstance->setRecipientId($decodedArray[self::INDEX_PACKAGE_RECIPIENT]);
                $packageInstance->setRecipientType(self::RECIPIENT_TYPE_DIRECT);
                $packageInstance->setPackageContent($decodedArray[self::INDEX_PACKAGE_CONTENT]);
-               $packageInstance->setStatus(self::PACKAGE_STATUS_DECODED);
+               $packageInstance->setPackageStatus(self::PACKAGE_STATUS_DECODED);
                $packageInstance->setContentHash($decodedArray[self::INDEX_PACKAGE_HASH]);
                $packageInstance->setSenderPrivateKeyHash($decodedArray[self::INDEX_PACKAGE_PRIVATE_KEY_HASH]);
 
index 36bdb76201470c5cc077fc83bcc1a4eda7943cc2..99f31018e95c640913a588cfa6f4005be7ecfc4b 100644 (file)
@@ -88,9 +88,9 @@ class PackageData extends BaseHubSystem implements DeliverablePackage, Registera
        private $recipientUnl;
 
        /**
-        * Status
+        * Package status
         */
-       private $status;
+       private $packageStatus;
 
        /**
         * Private key's hash
@@ -269,22 +269,22 @@ class PackageData extends BaseHubSystem implements DeliverablePackage, Registera
        }
 
        /**
-        * Getter for status
+        * Getter for packageStatus
         *
-        * @return      $status         Status
+        * @return      $packageStatus  Package status
         */
-       public final function getStatus () {
-               return $this->status;
+       public final function getPackageStatus () {
+               return $this->packageStatus;
        }
 
        /**
-        * Setter for status
+        * Setter for packageStatus
         *
-        * @param       $status         Status
+        * @param       $packageStatus  Package status
         * @return      void
         */
-       public final function setStatus (string $status) {
-               $this->status = $status;
+       public final function setPackageStatus (string $packageStatus) {
+               $this->packageStatus = $packageStatus;
        }
 
        /**
index c8870b9cfcb846377684abbb003b79090a63876e..fb99c473d9349fdebc0cb32f44a0bcff7b03d034 100644 (file)
@@ -521,7 +521,7 @@ class PackageFragmenter extends BaseHubSystem implements Fragmentable, Registera
                                NetworkPackageHandler::PACKAGE_DATA_SEPARATOR,
                                $packageInstance->getPackageContent(),
                                NetworkPackageHandler::PACKAGE_DATA_SEPARATOR,
-                               $packageInstance->getStatus(),
+                               $packageInstance->getPackageStatus(),
                                NetworkPackageHandler::PACKAGE_DATA_SEPARATOR,
                                $packageInstance->getContentHash(),
                                NetworkPackageHandler::PACKAGE_DATA_SEPARATOR,
index c7a70585682f5b706fe014c0ba8efcf0f073d47b..349b9167d2fa199a3a717ed5d789e1b7918568c6 100644 (file)
@@ -138,7 +138,7 @@ interface DeliverablePackage extends HubInterface {
         *
         * @return      $status         Status
         */
-       function getStatus ();
+       function getPackageStatus ();
 
        /**
         * Setter for status
@@ -146,7 +146,7 @@ interface DeliverablePackage extends HubInterface {
         * @param       $status         Status
         * @return      void
         */
-       function setStatus (string $status);
+       function setPackageStatus (string $status);
 
        /**
         * Getter for content hash
diff --git a/core b/core
index 035b3221bff7b542e264a9d0a4a6d086833487ef..ef7a7e55c59c9e887e6bb09c8c02b8126309f716 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit 035b3221bff7b542e264a9d0a4a6d086833487ef
+Subproject commit ef7a7e55c59c9e887e6bb09c8c02b8126309f716