config.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. /**
  3. * User: admin
  4. * Date Time: 2021/3/25 22:36
  5. */
  6. namespace common\components\dada\config;
  7. class config
  8. {
  9. /**
  10. * 达达开发者app_key
  11. */
  12. private $appKey = '';
  13. /**
  14. * 达达开发者app_secret
  15. */
  16. private $appSecret = '';
  17. /**
  18. * api版本
  19. */
  20. private $v = "1.0";
  21. /**
  22. * 数据格式
  23. */
  24. private $format = "json";
  25. /**
  26. * 商户ID
  27. */
  28. private $sourceId;
  29. /**
  30. * host
  31. */
  32. public $host;
  33. public function __construct(){
  34. }
  35. public function getAppKey(){
  36. return $this->appKey;
  37. }
  38. public function getAppSecret(){
  39. return $this->appSecret;
  40. }
  41. public function getV(){
  42. return $this->v;
  43. }
  44. public function getFormat(){
  45. return $this->format;
  46. }
  47. public function getSourceId(){
  48. return $this->sourceId;
  49. }
  50. public function getHost(){
  51. return $this->host;
  52. }
  53. /**
  54. * @param mixed $appKey
  55. */
  56. public function setAppKey($appKey)
  57. {
  58. $this->appKey = $appKey;
  59. }
  60. /**
  61. * @param mixed $appSecret
  62. */
  63. public function setAppSecret($appSecret)
  64. {
  65. $this->appSecret = $appSecret;
  66. }
  67. /**
  68. * @param mixed $v
  69. */
  70. public function setV($v)
  71. {
  72. $this->v = $v;
  73. }
  74. /**
  75. * @param mixed $format
  76. */
  77. public function setFormat($format)
  78. {
  79. $this->format = $format;
  80. }
  81. /**
  82. * @param mixed $sourceId
  83. */
  84. public function setSourceId($sourceId)
  85. {
  86. $this->sourceId = $sourceId;
  87. }
  88. /**
  89. * @param mixed $host
  90. */
  91. public function setHost($host)
  92. {
  93. $this->host = $host;
  94. }
  95. }