| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <?php
- namespace addons\JoinPay\common\logic\entity;
- /**
- * 请求参数类
- * Class Request
- * @package entity
- */
- class Request implements \JsonSerializable {
- private $method;
- private $version = "1.0";
- private $data;
- private $rand_str;
- private $sign_type = "2";
- private $mch_no;
- private $sign;
- private $sec_key;
- public function jsonSerialize()
- {
- $vars = get_object_vars($this);
- return $vars;
- }
- /**
- * @return mixed
- */
- public function getMethod()
- {
- return $this->method;
- }
- /**
- * @param mixed $method
- */
- public function setMethod($method): void
- {
- $this->method = $method;
- }
- /**
- * @return mixed
- */
- public function getVersion()
- {
- return $this->version;
- }
- /**
- * @param mixed $version
- */
- public function setVersion($version): void
- {
- $this->version = $version;
- }
- /**
- * @return mixed
- */
- public function getData()
- {
- return $this->data;
- }
- /**
- * @param mixed $data
- */
- public function setData($data): void
- {
- $this->data = $data;
- }
- /**
- * @return mixed
- */
- public function getRandStr()
- {
- return $this->rand_str;
- }
- /**
- * @param mixed $rand_str
- */
- public function setRandStr($rand_str): void
- {
- $this->rand_str = $rand_str;
- }
- /**
- * @return mixed
- */
- public function getSignType()
- {
- return $this->sign_type;
- }
- /**
- * @param mixed $sign_type
- */
- public function setSignType($sign_type): void
- {
- $this->sign_type = $sign_type;
- }
- /**
- * @return mixed
- */
- public function getMchNo()
- {
- return $this->mch_no;
- }
- /**
- * @param mixed $mch_no
- */
- public function setMchNo($mch_no): void
- {
- $this->mch_no = $mch_no;
- }
- /**
- * @return mixed
- */
- public function getSign()
- {
- return $this->sign;
- }
- /**
- * @param mixed $sign
- */
- public function setSign($sign): void
- {
- $this->sign = $sign;
- }
- /**
- * @return mixed
- */
- public function getSecKey()
- {
- return $this->sec_key;
- }
- /**
- * @param mixed $sec_key
- */
- public function setSecKey($sec_key): void
- {
- $this->sec_key = $sec_key;
- }
- }
|