123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?php
- /**
- * Created by PhpStorm.
- * User: JZ
- * Date: 2019/7/19
- * Time: 9:56
- */
- class Audit implements JsonSerializable {
- private $employee;
- private $pass;
- private $contractId;
- private $bizId;
- private $comment;
- 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 getEmployee()
- {
- return $this->employee;
- }
- /**
- * @param mixed $employee
- */
- public function setEmployee($employee)
- {
- $this->employee = $employee;
- }
- /**
- * @return mixed
- */
- public function getPass()
- {
- return $this->pass;
- }
- /**
- * @param mixed $pass
- */
- public function setPass($pass)
- {
- $this->pass = $pass;
- }
- /**
- * @return mixed
- */
- public function getContractId()
- {
- return $this->contractId;
- }
- /**
- * @param mixed $contractId
- */
- public function setContractId($contractId)
- {
- $this->contractId = $contractId;
- }
- /**
- * @return mixed
- */
- public function getBizId()
- {
- return $this->bizId;
- }
- /**
- * @param mixed $bizId
- */
- public function setBizId($bizId)
- {
- $this->bizId = $bizId;
- }
- /**
- * @return mixed
- */
- public function getComment()
- {
- return $this->comment;
- }
- /**
- * @param mixed $comment
- */
- public function setComment($comment)
- {
- $this->comment = $comment;
- }
- }
|