companyName = $companyName; $this->applicant = $applicant; } function getUrl() { return self::REQUEST_URL; } function getHttpParamers() { $paramSwitcher = ParamSwitcher::instanceParam(); $paramSwitcher->addParam('companyName', $this->companyName); $paramSwitcher->addParam('applicant', $this->applicant); $paramSwitcher->addParam('registerNo', $this->registerNo); $paramSwitcher->addParam('legalPerson', $this->legalPerson); $paramSwitcher->addParam('callbackUrl',$this->callbackUrl); if($this->closeButton == null){ $paramSwitcher->addParam('closeButton', true); }else{ $paramSwitcher->addParam('closeButton', $this->closeButton); } $httpParameter = HttpParameter::httpPostParamer(); $httpParameter->setJsonParams(json_encode($paramSwitcher->getParams())); return $httpParameter; } /** * @return mixed */ public function getCompanyName() { return $this->companyName; } /** * @param mixed $companyName */ public function setCompanyName($companyName) { $this->companyName = $companyName; } /** * @return mixed */ public function getApplicant() { return $this->applicant; } /** * @param mixed $applicant */ public function setApplicant($applicant) { $this->applicant = $applicant; } /** * @return mixed */ public function getRegisterNo() { return $this->registerNo; } /** * @param mixed $registerNo */ public function setRegisterNo($registerNo) { $this->registerNo = $registerNo; } /** * @return mixed */ public function getLegalPerson() { return $this->legalPerson; } /** * @param mixed $legalPerson */ public function setLegalPerson($legalPerson) { $this->legalPerson = $legalPerson; } /** * @return mixed */ public function getCallbackUrl() { return $this->callbackUrl; } /** * @param mixed $callbackUrl */ public function setCallbackUrl($callbackUrl) { $this->callbackUrl = $callbackUrl; } /** * @return mixed */ public function getCloseButton() { return $this->closeButton; } /** * @param mixed $closeButton */ public function setCloseButton($closeButton) { $this->closeButton = $closeButton; } }