Total Complexity | 7 |
Total Lines | 54 |
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 | |||
27 | public function getCreatedAt(): ?\DateTimeInterface |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return static |
||
34 | */ |
||
35 | public function setCreatedAt(\DateTimeInterface $createdAt) |
||
40 | } |
||
41 | |||
42 | public function getExpiresAt(): ?\DateTimeInterface |
||
43 | { |
||
44 | return $this->expiresAt; |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return static |
||
49 | */ |
||
50 | public function setExpiresAt(\DateTimeInterface $expiresAt) |
||
51 | { |
||
52 | $this->expiresAt = $expiresAt; |
||
53 | |||
54 | return $this; |
||
55 | } |
||
56 | |||
57 | public function getUser(): ?UserInterface |
||
58 | { |
||
59 | return $this->user; |
||
60 | } |
||
61 | |||
62 | /** |
||
63 | * @return static |
||
64 | */ |
||
65 | public function setUser(UserInterface $user) |
||
66 | { |
||
67 | $this->user = $user; |
||
68 | |||
69 | return $this; |
||
70 | } |
||
71 | |||
72 | public function isExpired(): bool |
||
75 | } |
||
76 | } |
||
77 |