$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());
$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);
}
$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]);
private $recipientUnl;
/**
- * Status
+ * Package status
*/
- private $status;
+ private $packageStatus;
/**
* Private key's hash
}
/**
- * 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;
}
/**
NetworkPackageHandler::PACKAGE_DATA_SEPARATOR,
$packageInstance->getPackageContent(),
NetworkPackageHandler::PACKAGE_DATA_SEPARATOR,
- $packageInstance->getStatus(),
+ $packageInstance->getPackageStatus(),
NetworkPackageHandler::PACKAGE_DATA_SEPARATOR,
$packageInstance->getContentHash(),
NetworkPackageHandler::PACKAGE_DATA_SEPARATOR,
*
* @return $status Status
*/
- function getStatus ();
+ function getPackageStatus ();
/**
* Setter for status
* @param $status Status
* @return void
*/
- function setStatus (string $status);
+ function setPackageStatus (string $status);
/**
* Getter for content hash
-Subproject commit 035b3221bff7b542e264a9d0a4a6d086833487ef
+Subproject commit ef7a7e55c59c9e887e6bb09c8c02b8126309f716