SealImageRequest.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. class SealImageRequest extends SdkRequest {
  3. const SEAL_IMAGE = "/v2/seal/image"; // 获取印章图片
  4. private $sealId;
  5. public function __construct() {
  6. $count = func_num_args();
  7. $args=func_get_args();
  8. if (method_exists($this,$f='__construct'.$count)) {
  9. call_user_func_array(array($this,$f),$args);
  10. }
  11. }
  12. public function __construct0() {
  13. }
  14. /**
  15. * SealImageRequest constructor.
  16. * @param $sealId
  17. */
  18. public function __construct1($sealId) {
  19. $this->sealId = $sealId;
  20. }
  21. public function getUrl() {
  22. return self::SEAL_IMAGE;
  23. }
  24. public function getHttpParamers() {
  25. $paramSwitcher = ParamSwitcher::instanceParam();
  26. $paramSwitcher->addParam('sealId', $this->sealId);
  27. $httpParameters = HttpParameter::httpGetParamer();
  28. $httpParameters->setParams($paramSwitcher->getParams());
  29. return $httpParameters;
  30. }
  31. /**
  32. * @return mixed
  33. */
  34. public function getSealId()
  35. {
  36. return $this->sealId;
  37. }
  38. /**
  39. * @param mixed $sealId
  40. */
  41. public function setSealId($sealId)
  42. {
  43. $this->sealId = $sealId;
  44. }
  45. }