Signatory.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <?php
  2. /**
  3. *
  4. * 签署方类
  5. *
  6. */
  7. class Signatory implements JsonSerializable {
  8. private $id; // 签署方ID
  9. private $tenantType; // 签署方类型
  10. private $tenantName; // 签署方名称
  11. private $status; // 签署方状态
  12. private $complateTime; // 签署方签署完成时间
  13. private $receiver; // 接收人
  14. private $serialNo; // 签署顺序
  15. private $category; // 签署方业务分类
  16. private $actions; // 签署动作(签署流程)
  17. private $attachments; // 附件要求;用于指定用户签署时上传附件
  18. private $userAuthInfo; // 用户认证信息
  19. private $stampers;
  20. private $hasLocation;
  21. private $link;
  22. private $delaySet;
  23. private $rejectInvalidReason;
  24. public function jsonSerialize() {
  25. $data = [];
  26. foreach ($this as $key=>$val){
  27. if ($val !== null) $data[$key] = $val;
  28. }
  29. if(sizeof($data) < 1){
  30. return null;
  31. }
  32. return $data;
  33. }
  34. /**
  35. * @return mixed
  36. */
  37. public function getId()
  38. {
  39. return $this->id;
  40. }
  41. /**
  42. * @param mixed $id
  43. */
  44. public function setId($id)
  45. {
  46. $this->id = $id;
  47. }
  48. /**
  49. * @return mixed
  50. */
  51. public function getTenantType()
  52. {
  53. return $this->tenantType;
  54. }
  55. /**
  56. * @param mixed $tenantType
  57. */
  58. public function setTenantType($tenantType)
  59. {
  60. $this->tenantType = $tenantType;
  61. }
  62. /**
  63. * @return mixed
  64. */
  65. public function getTenantName()
  66. {
  67. return $this->tenantName;
  68. }
  69. /**
  70. * @param mixed $tenantName
  71. */
  72. public function setTenantName($tenantName)
  73. {
  74. $this->tenantName = $tenantName;
  75. }
  76. /**
  77. * @return mixed
  78. */
  79. public function getReceiver()
  80. {
  81. return $this->receiver;
  82. }
  83. /**
  84. * @param mixed $receiver
  85. */
  86. public function setReceiver($receiver)
  87. {
  88. $this->receiver = $receiver;
  89. }
  90. /**
  91. * @return mixed
  92. */
  93. public function getSerialNo()
  94. {
  95. return $this->serialNo;
  96. }
  97. /**
  98. * @param mixed $serialNo
  99. */
  100. public function setSerialNo($serialNo)
  101. {
  102. $this->serialNo = $serialNo;
  103. }
  104. /**
  105. * @return mixed
  106. */
  107. public function getActions()
  108. {
  109. return $this->actions;
  110. }
  111. /**
  112. * @param mixed $actions
  113. */
  114. public function setActions($actions)
  115. {
  116. $this->actions = $actions;
  117. }
  118. /**
  119. * @return mixed
  120. */
  121. public function getAttachments()
  122. {
  123. return $this->attachments;
  124. }
  125. /**
  126. * @param mixed $attachments
  127. */
  128. public function setAttachments($attachments)
  129. {
  130. $this->attachments = $attachments;
  131. }
  132. /**
  133. * @return mixed
  134. */
  135. public function getUserAuthInfo()
  136. {
  137. return $this->userAuthInfo;
  138. }
  139. /**
  140. * @param mixed $userAuthInfo
  141. */
  142. public function setUserAuthInfo($userAuthInfo)
  143. {
  144. $this->userAuthInfo = $userAuthInfo;
  145. }
  146. /**
  147. * @return mixed
  148. */
  149. public function getStatus()
  150. {
  151. return $this->status;
  152. }
  153. /**
  154. * @param mixed $status
  155. */
  156. public function setStatus($status)
  157. {
  158. $this->status = $status;
  159. }
  160. /**
  161. * @return mixed
  162. */
  163. public function getComplateTime()
  164. {
  165. return $this->complateTime;
  166. }
  167. /**
  168. * @param mixed $complateTime
  169. */
  170. public function setComplateTime($complateTime)
  171. {
  172. $this->complateTime = $complateTime;
  173. }
  174. /**
  175. * @return mixed
  176. */
  177. public function getCategory()
  178. {
  179. return $this->category;
  180. }
  181. /**
  182. * @param mixed $category
  183. */
  184. public function setCategory($category)
  185. {
  186. $this->category = $category;
  187. }
  188. /**
  189. * @return mixed
  190. */
  191. public function getStampers()
  192. {
  193. return $this->stampers;
  194. }
  195. /**
  196. * @param mixed $stampers
  197. */
  198. public function setStampers($stampers)
  199. {
  200. $this->stampers = $stampers;
  201. }
  202. /**
  203. * @return mixed
  204. */
  205. public function getHasLocation()
  206. {
  207. return $this->hasLocation;
  208. }
  209. /**
  210. * @param mixed $hasLocation
  211. */
  212. public function setHasLocation($hasLocation)
  213. {
  214. $this->hasLocation = $hasLocation;
  215. }
  216. /**
  217. * @return mixed
  218. */
  219. public function getLink()
  220. {
  221. return $this->link;
  222. }
  223. /**
  224. * @param mixed $link
  225. */
  226. public function setLink($link)
  227. {
  228. $this->link = $link;
  229. }
  230. /**
  231. * @return mixed
  232. */
  233. public function getDelaySet()
  234. {
  235. return $this->delaySet;
  236. }
  237. /**
  238. * @param mixed $delaySet
  239. */
  240. public function setDelaySet($delaySet)
  241. {
  242. $this->delaySet = $delaySet;
  243. }
  244. /**
  245. * @return mixed
  246. */
  247. public function getRejectInvalidReason()
  248. {
  249. return $this->rejectInvalidReason;
  250. }
  251. /**
  252. * @param mixed $rejectInvalidReason
  253. */
  254. public function setRejectInvalidReason($rejectInvalidReason)
  255. {
  256. $this->rejectInvalidReason = $rejectInvalidReason;
  257. }
  258. }