CompanyAuthResultRequest.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * 获取企业认证结果
  4. */
  5. class CompanyAuthResultRequest extends SdkRequest {
  6. const REQUEST_URL = '/companyauth/result';
  7. private $companyName; // 待查询的认证公司名称
  8. private $requestId; // 认证请求ID
  9. function getUrl() {
  10. return self::REQUEST_URL;
  11. }
  12. function getHttpParamers() {
  13. $paramSwitcher = ParamSwitcher::instanceParam();
  14. $paramSwitcher->addParam('companyName', $this->companyName);
  15. $paramSwitcher->addParam('requestId', $this->requestId);
  16. $httpParamer = HttpParameter::httpGetParamer();
  17. $httpParamer->setParams($paramSwitcher->getParams());
  18. return $httpParamer;
  19. }
  20. /**
  21. * @return mixed
  22. */
  23. public function getCompanyName()
  24. {
  25. return $this->companyName;
  26. }
  27. /**
  28. * @param mixed $companyName
  29. */
  30. public function setCompanyName($companyName)
  31. {
  32. $this->companyName = $companyName;
  33. }
  34. /**
  35. * @return mixed
  36. */
  37. public function getRequestId()
  38. {
  39. return $this->requestId;
  40. }
  41. /**
  42. * @param mixed $requestId
  43. */
  44. public function setRequestId($requestId)
  45. {
  46. $this->requestId = $requestId;
  47. }
  48. }