SubCompanyRemoveRequest.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. class SubCompanyRemoveRequest extends SdkRequest {
  3. const REQUEST_URL = "/v2/subcompany/remove";
  4. private $companyName;
  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. public function __construct1($companyName) {
  15. $this->companyName = $companyName;
  16. }
  17. public function getUrl() {
  18. return self::REQUEST_URL;
  19. }
  20. public function getHttpParamers() {
  21. $paramSwitcher = ParamSwitcher::instanceParam();
  22. $paramSwitcher->addParam('companyName', $this->companyName);
  23. $httpParameters = HttpParameter::httpGetParamer();
  24. $httpParameters->setParams($paramSwitcher->getParams());
  25. return $httpParameters;
  26. }
  27. /**
  28. * @return mixed
  29. */
  30. public function getCompanyName()
  31. {
  32. return $this->companyName;
  33. }
  34. /**
  35. * @param mixed $companyName
  36. */
  37. public function setCompanyName($companyName)
  38. {
  39. $this->companyName = $companyName;
  40. }
  41. }