user = $user; } public function setUserId(int $userId): void { $this->userId = $userId; } public function setToken(string $token): void { $this->token = $token; } public function getUser(): ?User { return $this->user; } public function getUserId(): ?int { return $this->userId; } public function getToken(): string { return $this->token; } }