AccessToken   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCredentials() 0 5 1
1
<?php
2
/**
3
 * This file is part of the dingtalk.
4
 * User: Ilham Tahir <[email protected]>
5
 * This source file is subject to the MIT license that is bundled
6
 * with this source code in the file LICENSE.
7
 */
8
9
namespace Aplisin\DingTalk\Auth;
10
11
use Aplisin\DingTalk\Kernel\AccessToken as BaseAccessToken;
12
13
class AccessToken extends BaseAccessToken
14
{
15
    protected $endpointToGetToken = '/gettoken';
16
17
    protected $safeSeconds = 0;
18
19
    protected function getCredentials(): array
20
    {
21
        return [
22
            'corpid' => $this->app['config']['corp_id'],
23
            'corpsecret' => $this->app['config']['secret'],
24
        ];
25
    }
26
}
27