bizType = $bizType; $this->apiParas["biz_type"] = $bizType; } public function getBizType() { return $this->bizType; } public function setCalculateModel($calculateModel) { $this->calculateModel = $calculateModel; $this->apiParas["calculate_model"] = $calculateModel; } public function getCalculateModel() { return $this->calculateModel; } public function setDurationUnit($durationUnit) { $this->durationUnit = $durationUnit; $this->apiParas["duration_unit"] = $durationUnit; } public function getDurationUnit() { return $this->durationUnit; } public function setFromTime($fromTime) { $this->fromTime = $fromTime; $this->apiParas["from_time"] = $fromTime; } public function getFromTime() { return $this->fromTime; } public function setToTime($toTime) { $this->toTime = $toTime; $this->apiParas["to_time"] = $toTime; } public function getToTime() { return $this->toTime; } public function setUserid($userid) { $this->userid = $userid; $this->apiParas["userid"] = $userid; } public function getUserid() { return $this->userid; } public function getApiMethodName() { return "dingtalk.oapi.attendance.approve.duration.calculate"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->bizType,"bizType"); RequestCheckUtil::checkNotNull($this->calculateModel,"calculateModel"); RequestCheckUtil::checkNotNull($this->durationUnit,"durationUnit"); RequestCheckUtil::checkNotNull($this->fromTime,"fromTime"); RequestCheckUtil::checkNotNull($this->toTime,"toTime"); RequestCheckUtil::checkNotNull($this->userid,"userid"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }