Action.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. <?php
  2. /**
  3. *
  4. * 签署动作(签署流程)类
  5. *
  6. */
  7. class Action implements JsonSerializable {
  8. private $id; // 签署动作ID
  9. private $type;
  10. private $status; // 签署动作状态
  11. private $complateTime;
  12. private $name;
  13. private $serialNo;
  14. private $sealId;
  15. private $operators;
  16. private $stampers;
  17. private $hasLocation;
  18. private $sealIds;
  19. public function jsonSerialize() {
  20. $data = [];
  21. foreach ($this as $key=>$val){
  22. if ($val !== null) $data[$key] = $val;
  23. }
  24. if(sizeof($data) < 1){
  25. return null;
  26. }
  27. return $data;
  28. }
  29. /**
  30. * @return mixed
  31. */
  32. public function getId()
  33. {
  34. return $this->id;
  35. }
  36. /**
  37. * @param mixed $id
  38. */
  39. public function setId($id)
  40. {
  41. $this->id = $id;
  42. }
  43. /**
  44. * @return mixed
  45. */
  46. public function getType()
  47. {
  48. return $this->type;
  49. }
  50. /**
  51. * @param mixed $type
  52. */
  53. public function setType($type)
  54. {
  55. $this->type = $type;
  56. }
  57. /**
  58. * @return mixed
  59. */
  60. public function getName()
  61. {
  62. return $this->name;
  63. }
  64. /**
  65. * @param mixed $name
  66. */
  67. public function setName($name)
  68. {
  69. $this->name = $name;
  70. }
  71. /**
  72. * @return mixed
  73. */
  74. public function getSerialNo()
  75. {
  76. return $this->serialNo;
  77. }
  78. /**
  79. * @param mixed $serialNo
  80. */
  81. public function setSerialNo($serialNo)
  82. {
  83. $this->serialNo = $serialNo;
  84. }
  85. /**
  86. * @return mixed
  87. */
  88. public function getSealId()
  89. {
  90. return $this->sealId;
  91. }
  92. /**
  93. * @param mixed $sealId
  94. */
  95. public function setSealId($sealId)
  96. {
  97. $this->sealId = $sealId;
  98. }
  99. /**
  100. * @return mixed
  101. */
  102. public function getOperators()
  103. {
  104. return $this->operators;
  105. }
  106. /**
  107. * @param mixed $operators
  108. */
  109. public function setOperators($operators)
  110. {
  111. $this->operators = $operators;
  112. }
  113. /**
  114. * @return mixed
  115. */
  116. public function getStatus()
  117. {
  118. return $this->status;
  119. }
  120. /**
  121. * @param mixed $status
  122. */
  123. public function setStatus($status)
  124. {
  125. $this->status = $status;
  126. }
  127. /**
  128. * @return mixed
  129. */
  130. public function getComplateTime()
  131. {
  132. return $this->complateTime;
  133. }
  134. /**
  135. * @param mixed $complateTime
  136. */
  137. public function setComplateTime($complateTime)
  138. {
  139. $this->complateTime = $complateTime;
  140. }
  141. /**
  142. * @return mixed
  143. */
  144. public function getStampers()
  145. {
  146. return $this->stampers;
  147. }
  148. /**
  149. * @param mixed $stampers
  150. */
  151. public function setStampers($stampers)
  152. {
  153. $this->stampers = $stampers;
  154. }
  155. /**
  156. * @return mixed
  157. */
  158. public function getHasLocation()
  159. {
  160. return $this->hasLocation;
  161. }
  162. /**
  163. * @param mixed $hasLocation
  164. */
  165. public function setHasLocation($hasLocation)
  166. {
  167. $this->hasLocation = $hasLocation;
  168. }
  169. /**
  170. * @return mixed
  171. */
  172. public function getSealIds()
  173. {
  174. return $this->sealIds;
  175. }
  176. /**
  177. * @param mixed $sealIds
  178. */
  179. public function setSealIds($sealIds)
  180. {
  181. $this->sealIds = $sealIds;
  182. }
  183. }