Setting.php 991 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. namespace Cmbc;
  3. class Setting
  4. {
  5. public function set($appid, $appsecret, $submchid, $notify, $key, $ssl, $type, $timeout = 600)
  6. {
  7. $this->appid = $appid;
  8. $this->appsecret = $appsecret;
  9. $this->submchid = $submchid;
  10. $this->notify = $notify;
  11. $this->key = $key;
  12. $this->ssl = $ssl;
  13. $this->type = $type;
  14. $this->timeout = $timeout;
  15. return $this;
  16. }
  17. public function getNotifyUrl()
  18. {
  19. return $this->notify;
  20. }
  21. public function getSSLCertPath(&$sslCertPath, &$sslKeyPath)
  22. {
  23. $sslCertPath = $this->ssl['cert'];
  24. $sslKeyPath = $this->ssl['key'];
  25. }
  26. public function getTimeOut()
  27. {
  28. return $this->timeout;
  29. }
  30. public function getType()
  31. {
  32. return $this->type;
  33. }
  34. public function getAppId()
  35. {
  36. return $this->appid;
  37. }
  38. public function getAppSecret()
  39. {
  40. return $this->appsecret;
  41. }
  42. public function getSubMchId()
  43. {
  44. return $this->submchid;
  45. }
  46. public function getKey()
  47. {
  48. return $this->key;
  49. }
  50. }