lostPasswordToken; } public function setLostPasswordToken(?string $lostPasswordToken): self { $this->lostPasswordToken = $lostPasswordToken; return $this; } public function getLostPasswordExpiresAt(): ?\DateTimeInterface { return $this->lostPasswordExpiresAt; } public function setLostPasswordExpiresAt(?\DateTimeInterface $lostPasswordExpiresAt): self { $this->lostPasswordExpiresAt = $lostPasswordExpiresAt; return $this; } /** * Reset all properties after a successful reset. */ public function resetLostPawword(): void { $this->setLostPasswordToken(null); $this->setLostPasswordExpiresAt(null); } /** * Test if the token is still valid. */ public function isLostPasswordTokenExpired(\DateTimeInterface $now): bool { return $now > $this->getLostPasswordExpiresAt(); } }