Transfer.php 932 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace lc\wechat\wxpay\database;
  3. /**
  4. * @desc 企业支付到零钱用户类
  5. */
  6. class Transfer extends Base
  7. {
  8. /**
  9. * @desc 设置企业付款到零钱请求参数字段的值
  10. *
  11. * @param string $key 字段KEY
  12. * @param string mixed 字段值
  13. */
  14. public function setAttributes($key, $value)
  15. {
  16. $this->values[$key] = $value;
  17. }
  18. /**
  19. * @desc 获取企业付款到零钱请求参数字段已设置的值
  20. *
  21. * @param string $key 字段KEY
  22. */
  23. public function getAttributes($key)
  24. {
  25. return $this->isAttributesSet($key) ? $this->values[$key] : '';
  26. }
  27. /**
  28. * @desc 判断企业付款到零钱请求参数字段的值是否已设置
  29. *
  30. * @param string $key 字段KEY
  31. *
  32. * @return bool
  33. */
  34. public function isAttributesSet($key)
  35. {
  36. return array_key_exists($key, $this->values);
  37. }
  38. }