| Total Complexity | 7 |
| Total Lines | 39 |
| 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 $expiredAt = null; |
||
| 25 | protected ?UserInterface $user = null; |
||
| 26 | |||
| 27 | public function getCreatedAt(): ?\DateTimeInterface |
||
| 30 | } |
||
| 31 | |||
| 32 | public function setCreatedAt(\DateTimeInterface $createdAt): void |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getExpiredAt(): ?\DateTimeInterface |
||
| 38 | { |
||
| 39 | return $this->expiredAt; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function setExpiredAt(\DateTimeInterface $expiredAt): void |
||
| 43 | { |
||
| 44 | $this->expiredAt = $expiredAt; |
||
| 45 | } |
||
| 46 | |||
| 47 | public function getUser(): ?UserInterface |
||
| 48 | { |
||
| 49 | return $this->user; |
||
| 50 | } |
||
| 51 | |||
| 52 | public function setUser(UserInterface $user): void |
||
| 53 | { |
||
| 54 | $this->user = $user; |
||
| 55 | } |
||
| 56 | |||
| 57 | public function isExpired(): bool |
||
| 60 | } |
||
| 61 | } |
||
| 62 |