@@ -15,6 +15,10 @@ discard block |
||
15 | 15 | // boolean, whether the message body will be encoded in base64 |
16 | 16 | private $base64; |
17 | 17 | |
18 | + /** |
|
19 | + * @param string $messageBody |
|
20 | + * @param integer $delaySeconds |
|
21 | + */ |
|
18 | 22 | public function __construct($messageBody, $delaySeconds = NULL, $priority = NULL, $base64 = TRUE) |
19 | 23 | { |
20 | 24 | parent::__construct('post', NULL); |
@@ -26,6 +30,9 @@ discard block |
||
26 | 30 | $this->base64 = $base64; |
27 | 31 | } |
28 | 32 | |
33 | + /** |
|
34 | + * @param boolean $base64 |
|
35 | + */ |
|
29 | 36 | public function setBase64($base64) |
30 | 37 | { |
31 | 38 | $this->base64 = $base64; |
@@ -59,6 +59,9 @@ discard block |
||
59 | 59 | } |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param \XMLReader $xmlReader |
|
64 | + */ |
|
62 | 65 | private function parseBatchDeleteErrorResponse($xmlReader) |
63 | 66 | { |
64 | 67 | $ex = new BatchDeleteFailException($this->statusCode, "BatchDeleteMessage Failed For Some ReceiptHandles"); |
@@ -71,6 +74,9 @@ discard block |
||
71 | 74 | throw $ex; |
72 | 75 | } |
73 | 76 | |
77 | + /** |
|
78 | + * @param \XMLReader $xmlReader |
|
79 | + */ |
|
74 | 80 | private function parseNormalErrorResponse($xmlReader) |
75 | 81 | { |
76 | 82 | $result = XMLParser::parseNormalError($xmlReader); |
@@ -83,6 +83,9 @@ discard block |
||
83 | 83 | } |
84 | 84 | } |
85 | 85 | |
86 | + /** |
|
87 | + * @param \XMLReader $xmlReader |
|
88 | + */ |
|
86 | 89 | private function parseBatchSendErrorResponse($xmlReader) |
87 | 90 | { |
88 | 91 | $ex = new BatchSendFailException($this->statusCode, "BatchSendMessage Failed For Some Messages"); |
@@ -95,6 +98,9 @@ discard block |
||
95 | 98 | throw $ex; |
96 | 99 | } |
97 | 100 | |
101 | + /** |
|
102 | + * @param \XMLReader $xmlReader |
|
103 | + */ |
|
98 | 104 | private function parseNormalErrorResponse($xmlReader) |
99 | 105 | { |
100 | 106 | $result = XMLParser::parseNormalError($xmlReader); |
@@ -73,6 +73,9 @@ |
||
73 | 73 | } |
74 | 74 | } |
75 | 75 | |
76 | + /** |
|
77 | + * @param string $queueURL |
|
78 | + */ |
|
76 | 79 | private function getQueueNameFromQueueURL($queueURL) |
77 | 80 | { |
78 | 81 | $pieces = explode("/", $queueURL); |
@@ -77,6 +77,9 @@ |
||
77 | 77 | } |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param string $subscriptionURL |
|
82 | + */ |
|
80 | 83 | private function getSubscriptionNameFromSubscriptionURL($subscriptionURL) |
81 | 84 | { |
82 | 85 | $pieces = explode("/", $subscriptionURL); |
@@ -78,6 +78,9 @@ |
||
78 | 78 | } |
79 | 79 | } |
80 | 80 | |
81 | + /** |
|
82 | + * @param string $topicURL |
|
83 | + */ |
|
81 | 84 | private function getTopicNameFromTopicURL($topicURL) |
82 | 85 | { |
83 | 86 | $pieces = explode("/", $topicURL); |
@@ -46,6 +46,9 @@ |
||
46 | 46 | return $this->priority; |
47 | 47 | } |
48 | 48 | |
49 | + /** |
|
50 | + * @param boolean $base64 |
|
51 | + */ |
|
49 | 52 | public function readMessagePropertiesForPeekXML(\XMLReader $xmlReader, $base64) |
50 | 53 | { |
51 | 54 | $message = Message::fromXML($xmlReader, $base64); |
@@ -15,6 +15,9 @@ |
||
15 | 15 | return $this->receiptHandle; |
16 | 16 | } |
17 | 17 | |
18 | + /** |
|
19 | + * @param boolean $base64 |
|
20 | + */ |
|
18 | 21 | public function readMessagePropertiesForReceiveXML(\XMLReader $xmlReader, $base64) |
19 | 22 | { |
20 | 23 | $message = Message::fromXML($xmlReader, $base64); |