user = $user; $this->setFromToken($token); $this->created_at = time(); } public function getUser(): User { return $this->user; } }