From: Roland Häder Date: Mon, 26 Oct 2020 15:08:29 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=205e11179bf42839a97475f510bf3fcf9fabbc4c;p=hub.git Continued: - added missing properties PackageData::$rawData and PackageData::$errorCode with getter/setter - ops, missed to rename this! Signed-off-by: Roland Häder --- diff --git a/application/hub/classes/handler/package/class_NetworkPackageHandler.php b/application/hub/classes/handler/package/class_NetworkPackageHandler.php index dea95cc7b..770107d9b 100644 --- a/application/hub/classes/handler/package/class_NetworkPackageHandler.php +++ b/application/hub/classes/handler/package/class_NetworkPackageHandler.php @@ -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); diff --git a/application/hub/classes/package/deliverable/class_PackageData.php b/application/hub/classes/package/deliverable/class_PackageData.php index 93beeecc6..c848eb38d 100644 --- a/application/hub/classes/package/deliverable/class_PackageData.php +++ b/application/hub/classes/package/deliverable/class_PackageData.php @@ -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 *