| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | trait RefreshTokenTrait |
||
| 19 | { |
||
| 20 | protected AccessTokenEntityInterface $accessToken; |
||
| 21 | |||
| 22 | protected DateTimeImmutable $expiryDateTime; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | 22 | public function setAccessToken(AccessTokenEntityInterface $accessToken): void |
|
| 28 | { |
||
| 29 | 22 | $this->accessToken = $accessToken; |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * {@inheritdoc} |
||
| 34 | */ |
||
| 35 | 1 | public function getAccessToken(): AccessTokenEntityInterface |
|
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get the token's expiry date time. |
||
| 42 | */ |
||
| 43 | 6 | public function getExpiryDateTime(): DateTimeImmutable |
|
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Set the date time when the token expires. |
||
| 50 | */ |
||
| 51 | 22 | public function setExpiryDateTime(DateTimeImmutable $dateTime): void |
|
| 54 | } |
||
| 55 | } |
||
| 56 |