Credentials.php 671 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Credentials
  4. * PHP version 5
  5. *
  6. * @category Class
  7. * @package WechatPay
  8. * @author WeChat Pay Team
  9. * @link https://pay.weixin.qq.com
  10. */
  11. namespace WechatPay\GuzzleMiddleware;
  12. use Psr\Http\Message\RequestInterface;
  13. /**
  14. * Interface abstracting Credentials.
  15. *
  16. * @package WechatPay
  17. * @author WeChat Pay Team
  18. */
  19. interface Credentials
  20. {
  21. /**
  22. * Get schema of credentials
  23. *
  24. * @return string
  25. */
  26. public function getSchema();
  27. /**
  28. * Get token of credentials
  29. *
  30. * @param RequestInterface $request Api request
  31. *
  32. * @return string
  33. */
  34. public function getToken(RequestInterface $request);
  35. }