Total Complexity | 5 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 64.71% |
Changes | 0 |
1 | <?php |
||
5 | class Credentials |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | private $clientId; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $clientSecret; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $grantType; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $extraParams; |
||
26 | |||
27 | 1 | public function __construct(string $clientId, string $clientSecret, string $grantType, array $extraParams = []) |
|
28 | { |
||
29 | 1 | $this->clientId = $clientId; |
|
30 | 1 | $this->clientSecret = $clientSecret; |
|
31 | 1 | $this->grantType = $grantType; |
|
32 | 1 | $this->extraParams = $extraParams; |
|
33 | 1 | } |
|
34 | |||
35 | public function getClientId(): string |
||
36 | { |
||
37 | return $this->clientId; |
||
38 | } |
||
39 | |||
40 | public function getClientSecret(): string |
||
41 | { |
||
42 | return $this->clientSecret; |
||
43 | } |
||
44 | |||
45 | public function getGrantType(): string |
||
48 | } |
||
49 | |||
50 | 1 | public function getParameters(): array |
|
51 | { |
||
59 |