# Copyright (c) 2021 University of Illinois and others. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Mozilla Public License v2.0 which accompanies this distribution,
# and is available at https://www.mozilla.org/en-US/MPL/2.0/

from deprecated.sphinx import deprecated

from pyincore.analyses.socialvulnerabilityscore import SocialVulnerabilityScore


@deprecated(
    version="1.19.0",
    reason="This class will be deprecated soon. Use SocialVulnerabilityScore instead.",
)
class SocialVulnerability:
    def __init__(self, incore_client):
        self._delegate = SocialVulnerabilityScore(incore_client)

    def __getattr__(self, name):
        """
        Delegate attribute access to the SocialVulnerabilityScore instance.
        """
        return getattr(self._delegate, name)
