Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
22 | abstract class AbstractResponseType implements ResponseTypeInterface |
||
23 | { |
||
24 | use CryptTrait; |
||
25 | |||
26 | protected AccessTokenEntityInterface $accessToken; |
||
27 | |||
28 | protected RefreshTokenEntityInterface $refreshToken; |
||
29 | |||
30 | protected CryptKeyInterface $privateKey; |
||
31 | |||
32 | 5 | public function setAccessToken(AccessTokenEntityInterface $accessToken): void |
|
33 | { |
||
34 | 5 | $this->accessToken = $accessToken; |
|
35 | } |
||
36 | |||
37 | 5 | public function setRefreshToken(RefreshTokenEntityInterface $refreshToken): void |
|
38 | { |
||
39 | 5 | $this->refreshToken = $refreshToken; |
|
40 | } |
||
41 | |||
42 | 14 | public function setPrivateKey(CryptKeyInterface $key): void |
|
45 | } |
||
46 | } |
||
47 |