]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 26 Oct 2020 15:08:29 +0000 (16:08 +0100)
committerRoland Häder <roland@mxchange.org>
Mon, 26 Oct 2020 15:08:29 +0000 (16:08 +0100)
- added missing properties PackageData::$rawData and PackageData::$errorCode
  with getter/setter
- ops, missed to rename this!

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

index dea95cc7b2c98e302d60df8871e162d2f1c339f0..770107d9b588635e756a64a96b8c5e2d36cbd368 100644 (file)
@@ -1284,7 +1284,7 @@ class NetworkPackageHandler extends BaseHubHandler implements Deliverable, Recei
                $packageInstance = $this->getStackInstance()->getNamed(self::STACKER_NAME_DECODED_HANDLED);
 
                // Start assembling the raw package data array by chunking it
-               $this->getAssemblerInstance()->chunkPackageContent($packageInstance);
+               $this->getAssemblerInstance()->chunkPackageInstance($packageInstance);
 
                // Remove the package from 'handled_decoded' stack ...
                $this->getStackInstance()->popNamed(self::STACKER_NAME_DECODED_HANDLED);
index 93beeecc62056ad83d0596f2ce5e1f3eb752de93..c848eb38dca82d1e31eb4bfd1267b47dc7d46e49 100644 (file)
@@ -81,6 +81,16 @@ class PackageData extends BaseHubSystem implements DeliverablePackage, Registera
         */
        private $senderPrivateKeyHash;
 
+       /**
+        * Raw data
+        */
+       private $rawData;
+
+       /**
+        * Error code
+        */
+       private $errorCode;
+
        /**
         * Protected constructor
         *
@@ -275,6 +285,44 @@ class PackageData extends BaseHubSystem implements DeliverablePackage, Registera
                return $this->senderPrivateKeyHash;
        }
 
+       /**
+        * Getter for raw data
+        *
+        * @return      $rawData        Raw data
+        */
+       public function getRawData () {
+               return $this->rawData;
+       }
+
+       /**
+        * Setter for raw data
+        *
+        * @param       $rawData        Raw data
+        * @return      void
+        */
+       public function setRawData ($rawData) {
+               $this->rawData = $rawData;
+       }
+
+       /**
+        * Getter for error code
+        *
+        * @return      $errorCode      Error code
+        */
+       public function getErrorCode () {
+               return $this->errorCode;
+       }
+
+       /**
+        * Setter for error code
+        *
+        * @param       $errorCode      Error code
+        * @return      void
+        */
+       public function setErrorCode ($errorCode) {
+               $this->errorCode = $errorCode;
+       }
+
        /**
         * Collecting "getter" for all class fields as array
         *