more on articles
This commit is contained in:
parent
c1c7e32291
commit
f42855dc50
5 changed files with 34 additions and 19 deletions
|
@ -10,6 +10,8 @@ void Article::setPrice(int price) { price_ = price; }
|
|||
|
||||
void Article::setDescription(const std::string& description) { description_ = description; }
|
||||
|
||||
void Article::setSale(const std::shared_ptr<Sale> salePtr) { salePtr_ = salePtr; }
|
||||
std::string Article::getDescription() { return description_; }
|
||||
|
||||
void Article::setSale(std::shared_ptr<Sale> salePtr) { salePtr_ = salePtr; }
|
||||
|
||||
bool Article::isSold() { return salePtr_ ? true : false; }
|
Loading…
Add table
Add a link
Reference in a new issue