1 | <?php |
||
14 | trait RefreshTokenTrait |
||
15 | { |
||
16 | /** |
||
17 | * @var AccessTokenEntityInterface |
||
18 | */ |
||
19 | protected $accessToken; |
||
20 | |||
21 | /** |
||
22 | * @var \DateTime |
||
23 | */ |
||
24 | protected $expiryDateTime; |
||
25 | |||
26 | /** |
||
27 | * {@inheritdoc} |
||
28 | */ |
||
29 | 10 | public function setAccessToken(AccessTokenEntityInterface $accessToken) |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 1 | public function getAccessToken() |
|
41 | |||
42 | /** |
||
43 | * Get the token's expiry date time. |
||
44 | * |
||
45 | * @return \DateTime |
||
46 | */ |
||
47 | public function getExpiryDateTime() |
||
48 | { |
||
49 | return $this->expiryDateTime; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Set the date time when the token expires. |
||
54 | * |
||
55 | * @param \DateTime $dateTime |
||
56 | */ |
||
57 | 10 | public function setExpiryDateTime(\DateTime $dateTime) |
|
61 | } |
||
62 |