agentId = $agentId; $this->apiParas["agent_id"] = $agentId; } public function getAgentId() { return $this->agentId; } public function setSource($source) { $this->source = $source; $this->apiParas["source"] = $source; } public function getSource() { return $this->source; } public function setSourceId($sourceId) { $this->sourceId = $sourceId; $this->apiParas["source_id"] = $sourceId; } public function getSourceId() { return $this->sourceId; } public function getApiMethodName() { return "dingtalk.oapi.workspace.task.getbysourceid"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->sourceId,"sourceId"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }