| Total Complexity | 1 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class AccessToken extends BaseAccessToken |
||
| 22 | { |
||
| 23 | |||
| 24 | protected $requestMethod = 'POST'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $endpointToGetToken = 'cgi-bin/service/get_provider_token'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | protected $tokenKey = 'provider_access_token'; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | protected $cachePrefix = 'easywechat.kernel.provider_access_token.'; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Credential for get token. |
||
| 43 | * |
||
| 44 | * @return array |
||
| 45 | */ |
||
| 46 | protected function getCredentials(): array |
||
| 53 | } |