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