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