chooseSeats = $chooseSeats; $this->apiParas["chooseSeats"] = $chooseSeats; } public function getChooseSeats() { return $this->chooseSeats; } public function setContactName($contactName) { $this->contactName = $contactName; $this->apiParas["contactName"] = $contactName; } public function getContactName() { return $this->contactName; } public function setContactTel($contactTel) { $this->contactTel = $contactTel; $this->apiParas["contactTel"] = $contactTel; } public function getContactTel() { return $this->contactTel; } public function setDate($date) { $this->date = $date; $this->apiParas["date"] = $date; } public function getDate() { return $this->date; } public function setFrom($from) { $this->from = $from; $this->apiParas["from"] = $from; } public function getFrom() { return $this->from; } public function setItemIdInsur($itemIdInsur) { $this->itemIdInsur = $itemIdInsur; $this->apiParas["itemIdInsur"] = $itemIdInsur; } public function getItemIdInsur() { return $this->itemIdInsur; } public function setItemIdTrain($itemIdTrain) { $this->itemIdTrain = $itemIdTrain; $this->apiParas["itemIdTrain"] = $itemIdTrain; } public function getItemIdTrain() { return $this->itemIdTrain; } public function setPassagers($passagers) { $this->passagers = $passagers; $this->apiParas["passagers"] = $passagers; } public function getPassagers() { return $this->passagers; } public function setStartTime($startTime) { $this->startTime = $startTime; $this->apiParas["startTime"] = $startTime; } public function getStartTime() { return $this->startTime; } public function setTo($to) { $this->to = $to; $this->apiParas["to"] = $to; } public function getTo() { return $this->to; } public function setTrainNumber($trainNumber) { $this->trainNumber = $trainNumber; $this->apiParas["trainNumber"] = $trainNumber; } public function getTrainNumber() { return $this->trainNumber; } public function getApiMethodName() { return "qianmi.elife.train.order.create"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->contactName, "contactName"); RequestCheckUtil::checkNotNull($this->contactTel, "contactTel"); RequestCheckUtil::checkNotNull($this->date, "date"); RequestCheckUtil::checkNotNull($this->from, "from"); RequestCheckUtil::checkNotNull($this->itemIdTrain, "itemIdTrain"); RequestCheckUtil::checkNotNull($this->passagers, "passagers"); RequestCheckUtil::checkNotNull($this->startTime, "startTime"); RequestCheckUtil::checkNotNull($this->to, "to"); RequestCheckUtil::checkNotNull($this->trainNumber, "trainNumber"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }