beautify code
This commit is contained in:
parent
2131f12237
commit
d64606c861
2 changed files with 8 additions and 4 deletions
|
@ -10,8 +10,10 @@ void Article::setPrice(int price) { price_ = price; }
|
|||
|
||||
void Article::setDescription(const std::string& description) { description_ = description; }
|
||||
|
||||
std::string Article::getDescription() { return description_; }
|
||||
|
||||
void Article::setSale(std::shared_ptr<Sale> salePtr) { salePtr_ = salePtr; }
|
||||
|
||||
bool Article::isSold() { return salePtr_ ? true : false; }
|
||||
bool Article::isSold() { return salePtr_ ? true : false; }
|
||||
|
||||
std::string Article::getDescription() { return description_; }
|
||||
|
||||
Seller* Article::getSeller() { return sellerPtr_.get(); }
|
|
@ -18,11 +18,13 @@ class Article : public Entity
|
|||
void setArticleNo(int articleNo);
|
||||
void setPrice(int price);
|
||||
void setDescription(const std::string& description);
|
||||
std::string getDescription();
|
||||
bool isSold();
|
||||
void setSale(std::shared_ptr<Sale> salePtr);
|
||||
void setSeller(std::shared_ptr<Seller> sellerPtr);
|
||||
|
||||
std::string getDescription();
|
||||
Seller* getSeller();
|
||||
|
||||
private:
|
||||
std::shared_ptr<Seller> sellerPtr_{};
|
||||
std::shared_ptr<Sale> salePtr_{};
|
||||
|
|
Loading…
Reference in a new issue