ConfigInterface.php 414 B

12345678910111213141516171819202122
  1. <?php
  2. declare(strict_types=1);
  3. namespace Yansongda\Pay\Contract;
  4. interface ConfigInterface
  5. {
  6. /**
  7. * @param mixed $default default value of the entry when does not found
  8. *
  9. * @return mixed
  10. */
  11. public function get(string $key, $default = null);
  12. public function has(string $key): bool;
  13. /**
  14. * @param mixed $value
  15. */
  16. public function set(string $key, $value): void;
  17. }