OapiProcessinstanceVariableUpdateRequest.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.processinstance.variable.update request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.04.13
  7. */
  8. class OapiProcessinstanceVariableUpdateRequest
  9. {
  10. /**
  11. * 审批实例id
  12. **/
  13. private $processInstanceId;
  14. /**
  15. * 备注
  16. **/
  17. private $remark;
  18. /**
  19. * 变量列表
  20. **/
  21. private $variables;
  22. private $apiParas = array();
  23. public function setProcessInstanceId($processInstanceId)
  24. {
  25. $this->processInstanceId = $processInstanceId;
  26. $this->apiParas["process_instance_id"] = $processInstanceId;
  27. }
  28. public function getProcessInstanceId()
  29. {
  30. return $this->processInstanceId;
  31. }
  32. public function setRemark($remark)
  33. {
  34. $this->remark = $remark;
  35. $this->apiParas["remark"] = $remark;
  36. }
  37. public function getRemark()
  38. {
  39. return $this->remark;
  40. }
  41. public function setVariables($variables)
  42. {
  43. $this->variables = $variables;
  44. $this->apiParas["variables"] = $variables;
  45. }
  46. public function getVariables()
  47. {
  48. return $this->variables;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "dingtalk.oapi.processinstance.variable.update";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->processInstanceId,"processInstanceId");
  61. }
  62. public function putOtherTextParam($key, $value) {
  63. $this->apiParas[$key] = $value;
  64. $this->$key = $value;
  65. }
  66. }