TestRoaApiRequest.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. private $queryParam;
  18. private $bodyParam;
  19. private $headerParam;
  20. public function getQueryParam()
  21. {
  22. return $this->queryParam;
  23. }
  24. public function setQueryParam($queryParam)
  25. {
  26. $this->queryParam = $queryParam;
  27. $this->queryParameters["QueryParam"]=$queryParam;
  28. }
  29. public function getBodyParam()
  30. {
  31. return $this->bodyParam;
  32. }
  33. public function setBodyParam($bodyParam)
  34. {
  35. $this->bodyParam = $bodyParam;
  36. $this->queryParameters["BodyParam"]=$bodyParam;
  37. }
  38. public function getHeaderParam()
  39. {
  40. return $this->headerParam;
  41. }
  42. public function setHeaderParam($headerParam)
  43. {
  44. $this->headerParam = $headerParam;
  45. $this->headerParam["HeaderParam"]=$headerParam;
  46. }
  47. }