| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * Credentials
- * PHP version 5
- *
- * @category Class
- * @package WechatPay
- * @author WeChat Pay Team
- * @link https://pay.weixin.qq.com
- */
- namespace WechatPay\GuzzleMiddleware;
- use Psr\Http\Message\RequestInterface;
- /**
- * Interface abstracting Credentials.
- *
- * @package WechatPay
- * @author WeChat Pay Team
- */
- interface Credentials
- {
- /**
- * Get schema of credentials
- *
- * @return string
- */
- public function getSchema();
- /**
- * Get token of credentials
- *
- * @param RequestInterface $request Api request
- *
- * @return string
- */
- public function getToken(RequestInterface $request);
- }
|