Total Complexity | 7 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class RefreshToken |
||
22 | { |
||
23 | protected ?\DateTimeInterface $createdAt = null; |
||
24 | protected ?\DateTimeInterface $expiresAt = null; |
||
25 | protected ?UserInterface $user = null; |
||
26 | protected ?int $version = null; |
||
27 | |||
28 | public function getCreatedAt(): ?\DateTimeInterface |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @return static |
||
35 | */ |
||
36 | public function setCreatedAt(\DateTimeInterface $createdAt) |
||
41 | } |
||
42 | |||
43 | public function getExpiresAt(): ?\DateTimeInterface |
||
44 | { |
||
45 | return $this->expiresAt; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return static |
||
50 | */ |
||
51 | public function setExpiresAt(\DateTimeInterface $expiresAt) |
||
52 | { |
||
53 | $this->expiresAt = $expiresAt; |
||
54 | |||
55 | return $this; |
||
56 | } |
||
57 | |||
58 | public function getUser(): ?UserInterface |
||
59 | { |
||
60 | return $this->user; |
||
61 | } |
||
62 | |||
63 | /** |
||
64 | * @return static |
||
65 | */ |
||
66 | public function setUser(UserInterface $user) |
||
67 | { |
||
68 | $this->user = $user; |
||
69 | |||
70 | return $this; |
||
71 | } |
||
72 | |||
73 | public function isExpired(): bool |
||
76 | } |
||
77 | } |
||
78 |