Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
software-dev-7054cem/issue.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
41 lines (28 sloc)
1.12 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" This is the entity, Issue""" | |
class Issue: | |
def __init__(self): # a method to create objects | |
self.__title = "" # private attribute | |
self.__typeOfIssue = "" # private attribute | |
self.__description = "" # private attribute | |
self.__postcode = "" # private attribute | |
self.__time = "" # private attribute | |
def get_title(self): # get method | |
return self.__title | |
def set_title(self, title): # set method | |
self.__title = title | |
def get_issue_type(self): # get method | |
return self.__typeOfIssue | |
def set_issue_type(self, issue): # set method | |
self.__typeOfIssue = issue | |
def get_description(self): # get method | |
return self.__description | |
def set_description(self, description): # set method | |
self.__description = description | |
def get_postcode(self): # get method | |
return self.__postcode | |
def set_postcode(self, postcode): # set method | |
self.__postcode = postcode | |
def get_time(self): # get method | |
return self.__time | |
def set_time(self, time): # set method | |
self.__time = time |