public function handleFatalMessages (array $messageList) {
// Walk through all messages
foreach ($messageList as $message) {
- die('MSG:' . $message);
+ die(__METHOD__ . ':MSG:' . $message);
} // END - foreach
}
private function preparePackageAssmble () {
// Make sure both arrays have same count (this however should always be true)
assert(count($this->finalPackageChunks['hashes']) == count($this->finalPackageChunks['content']));
- //* DIE: */ die('finalPackageChunks='.print_r($this->finalPackageChunks['content'],true));
+ //* DIE: */ die(__METHOD__ . ':finalPackageChunks='.print_r($this->finalPackageChunks['content'],true));
/*
* Remove last element (hash chunk) from 'hashes'. This hash will never
* @return void
*/
public function handleMessageData (array $messageData, Receivable $packageInstance) {
- // Register the announcing node with this node
- $this->registerNodeByMessageData($messageData);
-
- // Prepare answer message to be delivered back to the other node
- $this->prepareAnswerMessage($messageData, $packageInstance);
+ die(__METHOD__ . ':messageData=' . $messageData);
}
/**
* @todo Unsupported feature of "signed" messages commented out
if (!$this->isPackageSignatureValid($decodedArray)) {
// Is not valid, so throw an exception here
- die('INVALID SIG! UNDER CONSTRUCTION!' . chr(10));
+ die(__METHOD__ . ':INVALID SIG! UNDER CONSTRUCTION!' . chr(10));
} // END - if
*/
// Handle message data
$handlerInstance->handleMessageData($messageArray[self::MESSAGE_ARRAY_DATA], $this);
- die('messageArray='.print_r($messageArray,true));
+ die(__METHOD__ . ':messageArray='.print_r($messageArray,true));
}
}