No Description

ListQueueRequest.php 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?php
  2. namespace AliyunMNS\Requests;
  3. use AliyunMNS\Requests\BaseRequest;
  4. class ListQueueRequest extends BaseRequest
  5. {
  6. private $retNum;
  7. private $prefix;
  8. private $marker;
  9. public function __construct($retNum = NULL, $prefix = NULL, $marker = NULL)
  10. {
  11. parent::__construct('get', 'queues');
  12. $this->setRetNum($retNum);
  13. $this->setPrefix($prefix);
  14. $this->setMarker($marker);
  15. }
  16. public function getRetNum()
  17. {
  18. return $this->retNum;
  19. }
  20. public function setRetNum($retNum)
  21. {
  22. $this->retNum = $retNum;
  23. if ($retNum != NULL)
  24. {
  25. $this->setHeader("x-mns-ret-number", $retNum);
  26. }
  27. else
  28. {
  29. $this->removeHeader("x-mns-ret-number");
  30. }
  31. }
  32. public function getPrefix()
  33. {
  34. return $this->prefix;
  35. }
  36. public function setPrefix($prefix)
  37. {
  38. $this->prefis = $prefix;
  39. if ($prefix != NULL)
  40. {
  41. $this->setHeader("x-mns-prefix", $prefix);
  42. }
  43. else
  44. {
  45. $this->removeHeader("x-mns-prefix");
  46. }
  47. }
  48. public function getMarker()
  49. {
  50. return $this->marker;
  51. }
  52. public function setMarker($marker)
  53. {
  54. $this->marker = $marker;
  55. if ($marker != NULL)
  56. {
  57. $this->setHeader("x-mns-marker", $marker);
  58. }
  59. else
  60. {
  61. $this->removeHeader("x-mns-marker");
  62. }
  63. }
  64. public function generateBody()
  65. {
  66. return NULL;
  67. }
  68. public function generateQueryString()
  69. {
  70. return NULL;
  71. }
  72. }
  73. ?>