addParam('contractId', $this->contractId); $paramSwitcher->addParam('bizId', $this->bizId); if($this->user){ $paramSwitcher->addParam('contact', $this->getUser()->getContact()); $paramSwitcher->addParam('contactType', $this->getUser()->getContactType()); } $httpParameters = HttpParameter::httpPostParamer(); $httpParameters->setJsonParams(json_encode($paramSwitcher->getParams())); return $httpParameters; } /** * @return mixed */ public function getContractId() { return $this->contractId; } /** * @param mixed $contractId */ public function setContractId($contractId) { $this->contractId = $contractId; } /** * @return mixed */ public function getBizId() { return $this->bizId; } /** * @param mixed $bizId */ public function setBizId($bizId) { $this->bizId = $bizId; } /** * @return mixed */ public function getUser() { return $this->user; } /** * @param mixed $user */ public function setUser($user) { $this->user = $user; } }