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