TestRoaApiRequest.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: zhangw
  5. * Date: 2017/12/19
  6. * Time: 下午6:39
  7. */
  8. namespace UnitTest\Ft;
  9. class TestRoaApiRequest extends \RoaAcsRequest
  10. {
  11. public function __construct()
  12. {
  13. parent::__construct("Ft", "2016-01-02", "TestRoaApi");
  14. $this->setUriPattern("/web/cloudapi");
  15. $this->setMethod("GET");
  16. }
  17. /**
  18. * @var
  19. */
  20. private $queryParam;
  21. /**
  22. * @var
  23. */
  24. private $bodyParam;
  25. /**
  26. * @var
  27. */
  28. private $headerParam;
  29. /**
  30. * @return mixed
  31. */
  32. public function getQueryParam()
  33. {
  34. return $this->queryParam;
  35. }
  36. /**
  37. * @param $queryParam
  38. */
  39. public function setQueryParam($queryParam)
  40. {
  41. $this->queryParam = $queryParam;
  42. $this->queryParameters["QueryParam"] = $queryParam;
  43. }
  44. /**
  45. * @return mixed
  46. */
  47. public function getBodyParam()
  48. {
  49. return $this->bodyParam;
  50. }
  51. /**
  52. * @param $bodyParam
  53. */
  54. public function setBodyParam($bodyParam)
  55. {
  56. $this->bodyParam = $bodyParam;
  57. $this->queryParameters["BodyParam"] = $bodyParam;
  58. }
  59. /**
  60. * @return mixed
  61. */
  62. public function getHeaderParam()
  63. {
  64. return $this->headerParam;
  65. }
  66. /**
  67. * @param $headerParam
  68. */
  69. public function setHeaderParam($headerParam)
  70. {
  71. $this->headerParam = $headerParam;
  72. $this->headerParam["HeaderParam"] = $headerParam;
  73. }
  74. }