@classmethod
def is_digit(cls, user_input):
    """
        Checks if the given input is an integer or a digit string.

        :rtype: bool
        """
    return isinstance(user_input, int) or isinstance(user_input, str
        ) and user_input.isdigit()
