Seal.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. <?php
  2. class Seal implements JsonSerializable {
  3. public function jsonSerialize() {
  4. $data = [];
  5. foreach ($this as $key=>$val){
  6. if ($val !== null) $data[$key] = $val;
  7. }
  8. if(sizeof($data) < 1){
  9. return null;
  10. }
  11. return $data;
  12. }
  13. private $id; // 印章id
  14. private $owner;
  15. private $name; // 印章名称
  16. private $type; // 签章类型
  17. private $spec; // 印章规格
  18. private $sealCategory; // 印章分类
  19. private $content; // 印章环形内容
  20. private $innerContent; // 印章内环环形文字
  21. private $foot; // 印章底部文字
  22. private $head; // 印章下横排文字第一排文字
  23. private $enterpriseCode; // 企业信息编码
  24. private $sealLogo; // 是否需要徽标
  25. /**
  26. * @return mixed
  27. */
  28. public function getId()
  29. {
  30. return $this->id;
  31. }
  32. /**
  33. * @param mixed $id
  34. */
  35. public function setId($id)
  36. {
  37. $this->id = $id;
  38. }
  39. /**
  40. * @return mixed
  41. */
  42. public function getOwner()
  43. {
  44. return $this->owner;
  45. }
  46. /**
  47. * @param mixed $owner
  48. */
  49. public function setOwner($owner)
  50. {
  51. $this->owner = $owner;
  52. }
  53. /**
  54. * @return mixed
  55. */
  56. public function getName()
  57. {
  58. return $this->name;
  59. }
  60. /**
  61. * @param mixed $name
  62. */
  63. public function setName($name)
  64. {
  65. $this->name = $name;
  66. }
  67. /**
  68. * @return mixed
  69. */
  70. public function getType()
  71. {
  72. return $this->type;
  73. }
  74. /**
  75. * @param mixed $type
  76. */
  77. public function setType($type)
  78. {
  79. $this->type = $type;
  80. }
  81. /**
  82. * @return mixed
  83. */
  84. public function getSpec()
  85. {
  86. return $this->spec;
  87. }
  88. /**
  89. * @param mixed $spec
  90. */
  91. public function setSpec($spec)
  92. {
  93. $this->spec = $spec;
  94. }
  95. /**
  96. * @return mixed
  97. */
  98. public function getSealCategory()
  99. {
  100. return $this->sealCategory;
  101. }
  102. /**
  103. * @param mixed $sealCategory
  104. */
  105. public function setSealCategory($sealCategory)
  106. {
  107. $this->sealCategory = $sealCategory;
  108. }
  109. /**
  110. * @return mixed
  111. */
  112. public function getContent()
  113. {
  114. return $this->content;
  115. }
  116. /**
  117. * @param mixed $content
  118. */
  119. public function setContent($content)
  120. {
  121. $this->content = $content;
  122. }
  123. /**
  124. * @return mixed
  125. */
  126. public function getInnerContent()
  127. {
  128. return $this->innerContent;
  129. }
  130. /**
  131. * @param mixed $innerContent
  132. */
  133. public function setInnerContent($innerContent)
  134. {
  135. $this->innerContent = $innerContent;
  136. }
  137. /**
  138. * @return mixed
  139. */
  140. public function getFoot()
  141. {
  142. return $this->foot;
  143. }
  144. /**
  145. * @param mixed $foot
  146. */
  147. public function setFoot($foot)
  148. {
  149. $this->foot = $foot;
  150. }
  151. /**
  152. * @return mixed
  153. */
  154. public function getHead()
  155. {
  156. return $this->head;
  157. }
  158. /**
  159. * @param mixed $head
  160. */
  161. public function setHead($head)
  162. {
  163. $this->head = $head;
  164. }
  165. /**
  166. * @return mixed
  167. */
  168. public function getEnterpriseCode()
  169. {
  170. return $this->enterpriseCode;
  171. }
  172. /**
  173. * @param mixed $enterpriseCode
  174. */
  175. public function setEnterpriseCode($enterpriseCode)
  176. {
  177. $this->enterpriseCode = $enterpriseCode;
  178. }
  179. /**
  180. * @return mixed
  181. */
  182. public function getSealLogo()
  183. {
  184. return $this->sealLogo;
  185. }
  186. /**
  187. * @param mixed $sealLogo
  188. */
  189. public function setSealLogo($sealLogo)
  190. {
  191. $this->sealLogo = $sealLogo;
  192. }
  193. /**
  194. * @return mixed
  195. */
  196. public function getEdgeWidth()
  197. {
  198. return $this->edgeWidth;
  199. }
  200. /**
  201. * @param mixed $edgeWidth
  202. */
  203. public function setEdgeWidth($edgeWidth)
  204. {
  205. $this->edgeWidth = $edgeWidth;
  206. }
  207. /**
  208. * @return mixed
  209. */
  210. public function getInnerEdgeWidth()
  211. {
  212. return $this->innerEdgeWidth;
  213. }
  214. /**
  215. * @param mixed $innerEdgeWidth
  216. */
  217. public function setInnerEdgeWidth($innerEdgeWidth)
  218. {
  219. $this->innerEdgeWidth = $innerEdgeWidth;
  220. }
  221. /**
  222. * @return mixed
  223. */
  224. public function getLogoSize()
  225. {
  226. return $this->logoSize;
  227. }
  228. /**
  229. * @param mixed $logoSize
  230. */
  231. public function setLogoSize($logoSize)
  232. {
  233. $this->logoSize = $logoSize;
  234. }
  235. }