SealRemoveRequest.php 1.1 KB

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