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