ConfigHandlerInterface.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace crmeb\services\wechat\contract;
  12. /**
  13. * 配置
  14. * Interface ConfigHandlerInterface
  15. * @package crmeb\services\wechat\contract
  16. */
  17. interface ConfigHandlerInterface
  18. {
  19. /**
  20. * 设置
  21. * @param string $key
  22. * @param $value
  23. * @return mixed
  24. */
  25. public function set(string $key, $value);
  26. /**
  27. * 获取单个
  28. * @param string|null $key
  29. * @return mixed
  30. */
  31. public function get(string $key = null);
  32. /**
  33. * 获取全部
  34. * @return array
  35. */
  36. public function all(): array;
  37. }