CompanyDetailRequest.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. class CompanyDetailRequest extends SdkRequest {
  3. const COMPANY_DETAIL = "/v2/company/detail"; // 公司详情接口地址
  4. private $companyName; // 公司名称
  5. private $registerNo;
  6. public function __construct() {
  7. $count = func_num_args();
  8. $args=func_get_args();
  9. if (method_exists($this,$f='__construct'.$count)) {
  10. call_user_func_array(array($this,$f),$args);
  11. }
  12. }
  13. public function __construct0() {
  14. }
  15. /**
  16. * CompanyDetailRequest constructor.
  17. * @param $companyName
  18. */
  19. public function __construct1($companyName) {
  20. $this->companyName = $companyName;
  21. }
  22. public function getUrl() {
  23. return self::COMPANY_DETAIL;
  24. }
  25. public function getHttpParamers() {
  26. $paramSwitcher = ParamSwitcher::instanceParam();
  27. $paramSwitcher->addParam('companyName', $this->companyName);
  28. $paramSwitcher->addParam('registerNo', $this->registerNo);
  29. $httpParameters = HttpParameter::httpGetParamer();
  30. $httpParameters->setParams($paramSwitcher->getParams());
  31. return $httpParameters;
  32. }
  33. /**
  34. * @return mixed
  35. */
  36. public function getCompanyName()
  37. {
  38. return $this->companyName;
  39. }
  40. /**
  41. * @param mixed $companyName
  42. */
  43. public function setCompanyName($companyName)
  44. {
  45. $this->companyName = $companyName;
  46. }
  47. /**
  48. * @return mixed
  49. */
  50. public function getRegisterNo()
  51. {
  52. return $this->registerNo;
  53. }
  54. /**
  55. * @param mixed $registerNo
  56. */
  57. public function setRegisterNo($registerNo)
  58. {
  59. $this->registerNo = $registerNo;
  60. }
  61. }