item; } public function setItem($item) { $this->item = $item; $arr = array(); foreach ($item as $temp){ array_push($arr,$temp->getApiParams()); } $this->apiParams["item"] = $arr; } public function getApiMethodName(){ return 'suning.selfmarket.rejectscheck.add'; } public function getApiParams(){ return $this->apiParams; } public function check(){ //非空校验 } public function getBizName(){ return "addRejectsCheck"; } } class Item { private $apiParams = array(); private $checkResult; private $checkTime; private $remark; private $serialId; private $supplierCode; public function getCheckResult() { return $this->checkResult; } public function setCheckResult($checkResult) { $this->checkResult = $checkResult; $this->apiParams["checkResult"] = $checkResult; } public function getCheckTime() { return $this->checkTime; } public function setCheckTime($checkTime) { $this->checkTime = $checkTime; $this->apiParams["checkTime"] = $checkTime; } public function getRemark() { return $this->remark; } public function setRemark($remark) { $this->remark = $remark; $this->apiParams["remark"] = $remark; } public function getSerialId() { return $this->serialId; } public function setSerialId($serialId) { $this->serialId = $serialId; $this->apiParams["serialId"] = $serialId; } public function getSupplierCode() { return $this->supplierCode; } public function setSupplierCode($supplierCode) { $this->supplierCode = $supplierCode; $this->apiParams["supplierCode"] = $supplierCode; } public function getApiParams(){ return $this->apiParams; } } ?>