CompanyLicenseDownloadRequest.php 862 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * 公司工商印业执照下载
  4. */
  5. class CompanyLicenseDownloadRequest extends SdkRequest {
  6. const REQUEST_URL = '/v2/company/downloadlicense';
  7. private $companyName; // 公司名称
  8. function getUrl() {
  9. return self::REQUEST_URL;
  10. }
  11. function getHttpParamers() {
  12. $paramSwitcher = ParamSwitcher::instanceParam();
  13. $paramSwitcher->addParam('companyName',$this->companyName);
  14. $httpParamer = HttpParameter::httpGetParamer();
  15. $httpParamer->setParams($paramSwitcher->getParams());
  16. return $httpParamer;
  17. }
  18. /**
  19. * @return mixed
  20. */
  21. public function getCompanyName()
  22. {
  23. return $this->companyName;
  24. }
  25. /**
  26. * @param mixed $companyName
  27. */
  28. public function setCompanyName($companyName)
  29. {
  30. $this->companyName = $companyName;
  31. }
  32. }