SealImageInfo.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?php
  2. class SealImageInfo implements JsonSerializable {
  3. private $style; // 印章样式
  4. private $spec; // 印章规格
  5. private $branchName; // 分公司名称
  6. private $foot; // 下文横排文字
  7. private $enterpriseCode; // 企业信息编码
  8. private $enContent; // 环排英文文字
  9. private $edgeWidth; // 圆边宽
  10. public function jsonSerialize() {
  11. $data = [];
  12. foreach ($this as $key=>$val){
  13. if ($val !== null) $data[$key] = $val;
  14. }
  15. if(sizeof($data) < 1){
  16. return null;
  17. }
  18. return $data;
  19. }
  20. public function getStyle()
  21. {
  22. return $this->style;
  23. }
  24. public function setStyle($style)
  25. {
  26. $this->style = $style;
  27. }
  28. public function getSpec()
  29. {
  30. return $this->spec;
  31. }
  32. public function setSpec($spec)
  33. {
  34. $this->spec = $spec;
  35. }
  36. public function getBranchName()
  37. {
  38. return $this->branchName;
  39. }
  40. public function setBranchName($branchName)
  41. {
  42. $this->branchName = $branchName;
  43. }
  44. public function getFoot()
  45. {
  46. return $this->foot;
  47. }
  48. public function setFoot($foot)
  49. {
  50. $this->foot = $foot;
  51. }
  52. public function getEnterpriseCode()
  53. {
  54. return $this->enterpriseCode;
  55. }
  56. public function setEnterpriseCode($enterpriseCode)
  57. {
  58. $this->enterpriseCode = $enterpriseCode;
  59. }
  60. public function getEnContent()
  61. {
  62. return $this->enContent;
  63. }
  64. public function setEnContent($enContent)
  65. {
  66. $this->enContent = $enContent;
  67. }
  68. public function getEdgeWidth()
  69. {
  70. return $this->edgeWidth;
  71. }
  72. public function setEdgeWidth($edgeWidth)
  73. {
  74. $this->edgeWidth = $edgeWidth;
  75. }
  76. }