123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442 |
- <?php
- class Contract implements JsonSerializable {
- private $id; // 合同ID
- private $bizId; // 业务ID,一个合同对应一个bizId,不能重复
- private $sn; // 合同编号
- private $subject; // 合同主题(合同名称)
- private $description; // 合同描述
- private $tenantName; //
- private $status;
- private $expireTime; // 合同过期时间;格式为yyyy-MM-dd HH:mm:ss,默认过期时间为业务分类中配置的时间
- private $publishTime;
- private $endTime;
- private $ordinal; // 是否顺序签署;默认为true
- private $send; // 是否发起合同
- private $category; // 业务分类;默认为“默认业务分类”
- private $creator; // 创建人;默认为虚拟用户
- private $signatories; // 签署方;签署合同的公司/个人
- private $templateParams; // 模板参数,用于文件模板的填参
- private $documents; // 合同文档
- private $copySendReceivers;
- private $comments;
- private $invalidReason;
- private $tags;
- private $signFlowStrategy;
- private $actualSponsorName;
- private $relatedContractIds;
- private $customFields;
- 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 getId()
- {
- return $this->id;
- }
- /**
- * @param mixed $id
- */
- public function setId($id)
- {
- $this->id = $id;
- }
- /**
- * @return mixed
- */
- public function getBizId()
- {
- return $this->bizId;
- }
- /**
- * @param mixed $bizId
- */
- public function setBizId($bizId)
- {
- $this->bizId = $bizId;
- }
- /**
- * @return mixed
- */
- public function getSn()
- {
- return $this->sn;
- }
- /**
- * @param mixed $sn
- */
- public function setSn($sn)
- {
- $this->sn = $sn;
- }
- /**
- * @return mixed
- */
- public function getSubject()
- {
- return $this->subject;
- }
- /**
- * @param mixed $subject
- */
- public function setSubject($subject)
- {
- $this->subject = $subject;
- }
- /**
- * @return mixed
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * @param mixed $description
- */
- public function setDescription($description)
- {
- $this->description = $description;
- }
- /**
- * @return mixed
- */
- public function getExpireTime()
- {
- return $this->expireTime;
- }
- /**
- * @param mixed $expireTime
- */
- public function setExpireTime($expireTime)
- {
- $this->expireTime = $expireTime;
- }
- /**
- * @return mixed
- */
- public function getTenantName()
- {
- return $this->tenantName;
- }
- /**
- * @param mixed $tenantName
- */
- public function setTenantName($tenantName)
- {
- $this->tenantName = $tenantName;
- }
- /**
- * @return mixed
- */
- public function getOrdinal()
- {
- return $this->ordinal;
- }
- /**
- * @param mixed $ordinal
- */
- public function setOrdinal($ordinal)
- {
- $this->ordinal = $ordinal;
- }
- /**
- * @return mixed
- */
- public function getSend()
- {
- return $this->send;
- }
- /**
- * @param mixed $send
- */
- public function setSend($send)
- {
- $this->send = $send;
- }
- /**
- * @return mixed
- */
- public function getCategory()
- {
- return $this->category;
- }
- /**
- * @param mixed $category
- */
- public function setCategory($category)
- {
- $this->category = $category;
- }
- /**
- * @return mixed
- */
- public function getCreator()
- {
- return $this->creator;
- }
- /**
- * @param mixed $creator
- */
- public function setCreator($creator)
- {
- $this->creator = $creator;
- }
- /**
- * @return mixed
- */
- public function getSignatories()
- {
- return $this->signatories;
- }
- /**
- * @param mixed $signatories
- */
- public function setSignatories($signatories)
- {
- $this->signatories = $signatories;
- }
- /**
- * @return mixed
- */
- public function getTemplateParams()
- {
- return $this->templateParams;
- }
- /**
- * @param mixed $templateParams
- */
- public function setTemplateParams($templateParams)
- {
- $this->templateParams = $templateParams;
- }
- /**
- * @return mixed
- */
- public function getDocuments()
- {
- return $this->documents;
- }
- /**
- * @param mixed $documents
- */
- public function setDocuments($documents)
- {
- $this->documents = $documents;
- }
- /**
- * @return mixed
- */
- public function getStatus()
- {
- return $this->status;
- }
- /**
- * @param mixed $status
- */
- public function setStatus($status)
- {
- $this->status = $status;
- }
- /**
- * @return mixed
- */
- public function getPublishTime()
- {
- return $this->publishTime;
- }
- /**
- * @param mixed $publishTime
- */
- public function setPublishTime($publishTime)
- {
- $this->publishTime = $publishTime;
- }
- /**
- * @return mixed
- */
- public function getEndTime()
- {
- return $this->endTime;
- }
- /**
- * @param mixed $endTime
- */
- public function setEndTime($endTime)
- {
- $this->endTime = $endTime;
- }
- /**
- * @return mixed
- */
- public function getCopySendReceivers()
- {
- return $this->copySendReceivers;
- }
- /**
- * @param mixed $copySendReceivers
- */
- public function setCopySendReceivers($copySendReceivers)
- {
- $this->copySendReceivers = $copySendReceivers;
- }
- /**
- * @return mixed
- */
- public function getComments()
- {
- return $this->comments;
- }
- /**
- * @param mixed $comments
- */
- public function setComments($comments)
- {
- $this->comments = $comments;
- }
- /**
- * @return mixed
- */
- public function getInvalidReason()
- {
- return $this->invalidReason;
- }
- /**
- * @param mixed $invalidReason
- */
- public function setInvalidReason($invalidReason)
- {
- $this->invalidReason = $invalidReason;
- }
- /**
- * @return mixed
- */
- public function getTags()
- {
- return $this->tags;
- }
- /**
- * @param mixed $tags
- */
- public function setTags($tags)
- {
- $this->tags = $tags;
- }
- /**
- * @return mixed
- */
- public function getSignFlowStrategy()
- {
- return $this->signFlowStrategy;
- }
- /**
- * @param mixed $signFlowStrategy
- */
- public function setSignFlowStrategy($signFlowStrategy)
- {
- $this->signFlowStrategy = $signFlowStrategy;
- }
-
- /**
- * @return mixed
- */
- public function getActualSponsorName()
- {
- return $this->actualSponsorName;
- }
-
- /**
- * @param mixed $actualSponsorName
- */
- public function setActualSponsorName($actualSponsorName)
- {
- $this->actualSponsorName = $actualSponsorName;
- }
- /**
- * @return mixed
- */
- public function getRelatedContractIds()
- {
- return $this->relatedContractIds;
- }
- /**
- * @param mixed $relatedContractIds
- */
- public function setRelatedContractIds($relatedContractIds)
- {
- $this->relatedContractIds = $relatedContractIds;
- }
- /**
- * @return mixed
- */
- public function getCustomFields()
- {
- return $this->customFields;
- }
- /**
- * @param mixed $customFields
- */
- public function setCustomFields($customFields)
- {
- $this->customFields = $customFields;
- }
- }
|