token; } public function getUserId(): int { return $this->userId; } public function getCreatedAt(): DateTimeImmutable { return $this->createdAt; } public function getExpiresAt(): DateTimeImmutable { return $this->expiresAt; } public function isExpired(DateTimeImmutable $now): bool { return $now >= $this->expiresAt; } }