123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- <?php
- /**
- * Created by PhpStorm.
- * User: JZ
- * Date: 2019/7/19
- * Time: 9:38
- */
- class Stamper implements JsonSerializable {
- private $actionId; //签署动作ID
- private $signatoryId; //签署方ID
- private $type; //签署类型
- private $documentId; //签署文档Id
- private $sealId; //签署印章Id
- private $offsetX; //签署横坐标
- private $offsetY; //签署纵坐标
- private $page; //签署页码
- private $keyword; //关键字
- private $keywordIndex; //关键字索引
- public function jsonSerialize() {
- $data = [];
- foreach ($this as $key=>$val){
- if ($val !== null) $data[$key] = $val;
- }
- if(sizeof($data) < 1){
- return null;
- }
- return $data;
- }
- /**
- * @return mixed
- */
- public function getActionId()
- {
- return $this->actionId;
- }
- /**
- * @param mixed $actionId
- */
- public function setActionId($actionId)
- {
- $this->actionId = $actionId;
- }
- /**
- * @return mixed
- */
- public function getSignatoryId()
- {
- return $this->signatoryId;
- }
- /**
- * @param mixed $signatoryId
- */
- public function setSignatoryId($signatoryId)
- {
- $this->signatoryId = $signatoryId;
- }
- /**
- * @return mixed
- */
- public function getType()
- {
- return $this->type;
- }
- /**
- * @param mixed $type
- */
- public function setType($type)
- {
- $this->type = $type;
- }
- /**
- * @return mixed
- */
- public function getDocumentId()
- {
- return $this->documentId;
- }
- /**
- * @param mixed $documentId
- */
- public function setDocumentId($documentId)
- {
- $this->documentId = $documentId;
- }
- /**
- * @return mixed
- */
- public function getSealId()
- {
- return $this->sealId;
- }
- /**
- * @param mixed $sealId
- */
- public function setSealId($sealId)
- {
- $this->sealId = $sealId;
- }
- /**
- * @return mixed
- */
- public function getOffsetX()
- {
- return $this->offsetX;
- }
- /**
- * @param mixed $offsetX
- */
- public function setOffsetX($offsetX)
- {
- $this->offsetX = $offsetX;
- }
- /**
- * @return mixed
- */
- public function getOffsetY()
- {
- return $this->offsetY;
- }
- /**
- * @param mixed $offsetY
- */
- public function setOffsetY($offsetY)
- {
- $this->offsetY = $offsetY;
- }
- /**
- * @return mixed
- */
- public function getPage()
- {
- return $this->page;
- }
- /**
- * @param mixed $page
- */
- public function setPage($page)
- {
- $this->page = $page;
- }
- /**
- * @return mixed
- */
- public function getKeyword()
- {
- return $this->keyword;
- }
- /**
- * @param mixed $keyword
- */
- public function setKeyword($keyword)
- {
- $this->keyword = $keyword;
- }
- /**
- * @return mixed
- */
- public function getKeywordIndex()
- {
- return $this->keywordIndex;
- }
- /**
- * @param mixed $keywordIndex
- */
- public function setKeywordIndex($keywordIndex)
- {
- $this->keywordIndex = $keywordIndex;
- }
- }
|