1 | <?php |
||
14 | class RefreshTokenEntity implements RefreshTokenEntityInterface |
||
15 | { |
||
16 | /** |
||
17 | * @ORM\Id() |
||
18 | * @ORM\GeneratedValue() |
||
19 | * @ORM\Column(type="integer") |
||
20 | * @var int |
||
21 | */ |
||
22 | private $id; |
||
23 | |||
24 | /** |
||
25 | * @ORM\Column(type="boolean") |
||
26 | * @var bool |
||
27 | */ |
||
28 | private $revoked = false; |
||
29 | |||
30 | /** |
||
31 | * @ORM\Column(type="string", length=80, unique=true) |
||
32 | * @var string |
||
33 | */ |
||
34 | private $identifier; |
||
35 | |||
36 | /** |
||
37 | * @ORM\Column(type="datetimetz") |
||
38 | * @var \DateTime |
||
39 | */ |
||
40 | private $expiryDateTime; |
||
41 | |||
42 | /** |
||
43 | * @ORM\ManyToOne(targetEntity="Lookyman\NetteOAuth2Server\Storage\Doctrine\AccessToken\AccessTokenEntity") |
||
44 | * @var AccessToken; |
||
45 | */ |
||
46 | private $accessToken; |
||
47 | |||
48 | /** |
||
49 | * @return int|null |
||
50 | */ |
||
51 | public function getId() |
||
55 | |||
56 | public function __clone() |
||
60 | |||
61 | /** |
||
62 | * @return bool |
||
63 | */ |
||
64 | public function isRevoked(): bool |
||
68 | |||
69 | /** |
||
70 | * @param bool $revoked |
||
71 | */ |
||
72 | public function setRevoked(bool $revoked) |
||
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | public function getIdentifier() |
||
84 | |||
85 | /** |
||
86 | * @param string $identifier |
||
87 | */ |
||
88 | public function setIdentifier($identifier) |
||
92 | |||
93 | /** |
||
94 | * @return \DateTime |
||
95 | */ |
||
96 | public function getExpiryDateTime() |
||
100 | |||
101 | /** |
||
102 | * @param \DateTime $dateTime |
||
103 | */ |
||
104 | public function setExpiryDateTime(\DateTime $dateTime) |
||
108 | |||
109 | /** |
||
110 | * @param AccessTokenEntityInterface $accessToken |
||
111 | */ |
||
112 | public function setAccessToken(AccessTokenEntityInterface $accessToken) |
||
116 | |||
117 | /** |
||
118 | * @return AccessTokenEntityInterface |
||
119 | */ |
||
120 | public function getAccessToken() |
||
124 | } |
||
125 |