from typing import List

from server.models.Bank import Bank


class Month:
    def __init__(self, month: str, banks: List[Bank], income: int):
        self.__month = str(month)
        self.__banks = banks
        self.__income = int(income)

    def __repr__(self):
        return f"month: {self.__month}\nbanks: {[str(bank) for bank in self.__banks]}"

    def __str__(self):
        return f"month: {self.__month}\nbanks: {[str(bank) for bank in self.__banks]}"

    def getMonth(self):
        return self.__month

    def getBanks(self):
        return self.__banks

    def setBanks(self, banks: List[Bank]):
        self.__banks = banks

    def getIncome(self):
        return self.__income

    def setIncome(self, income:int):
        self.__income = income
