class Trashcan: def __init__(self): self.id: int = 0 self.image: object = None self.position: tuple = None self.trashtype: str = None def setPosition(self, position: tuple): self.position = position return self def getPosition(self): return self.position def setImage(self, image: object): self.image = image return self def getImage(self): return self.image def setTrashtype(self, trashtype: str): self.trashtype = trashtype return self def getTrashtype(self): return self.trashtype def setId(self, newId: int): self.id = newId return self def getId(self): return self.id def generateTrashcan(newId, image, position, trashtype): """ :param int newId: :param string image: :param tuple position: :param string trashtype: :return object Trashcan: """ trash = Trashcan() trash.setId(newId).setImage(image).setPosition(position).setTrashtype(trashtype) return trash