You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wkcrm/extend/alimsg/msg_sdk/lib/MNS/Traits/MessagePropertiesForReceive...

34 lines
999 B

<?php
namespace AliyunMNS\Traits;
use AliyunMNS\Model\Message;
use AliyunMNS\Traits\MessagePropertiesForPeek;
trait MessagePropertiesForReceive
{
use MessagePropertiesForPeek;
protected $receiptHandle;
public function getReceiptHandle()
{
return $this->receiptHandle;
}
public function readMessagePropertiesForReceiveXML(\XMLReader $xmlReader, $base64)
{
$message = Message::fromXML($xmlReader, $base64);
$this->messageId = $message->getMessageId();
$this->messageBodyMD5 = $message->getMessageBodyMD5();
$this->messageBody = $message->getMessageBody();
$this->enqueueTime = $message->getEnqueueTime();
$this->nextVisibleTime = $message->getNextVisibleTime();
$this->firstDequeueTime = $message->getFirstDequeueTime();
$this->dequeueCount = $message->getDequeueCount();
$this->priority = $message->getPriority();
$this->receiptHandle = $message->getReceiptHandle();
}
}
?>