SaaSCompanyAuthUrlRequest.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. class SaaSCompanyAuthUrlRequest extends SdkRequest {
  3. const REQUEST_URL = "/saas/v2/companyauth/url";
  4. private $companyId;
  5. public function getUrl() {
  6. return self::REQUEST_URL;
  7. }
  8. public function getHttpParamers() {
  9. $paramSwitcher = ParamSwitcher::instanceParam();
  10. $paramSwitcher->addParam('companyId', $this->companyId);
  11. $httpParameters = HttpParameter::httpPostParamer();
  12. $httpParameters->setJsonParams(json_encode($paramSwitcher->getParams()));
  13. return $httpParameters;
  14. }
  15. public function __construct() {
  16. $count = func_num_args();
  17. $args=func_get_args();
  18. if (method_exists($this,$f='__construct'.$count)) {
  19. call_user_func_array(array($this,$f),$args);
  20. }
  21. }
  22. public function __construct0() {
  23. }
  24. /**
  25. * @return mixed
  26. */
  27. public function getCompanyId()
  28. {
  29. return $this->companyId;
  30. }
  31. /**
  32. * @param mixed $companyId
  33. */
  34. public function setCompanyId($companyId)
  35. {
  36. $this->companyId = $companyId;
  37. }
  38. }