Skip to content

Commit

Permalink
introduce a getter and a setter for priorty
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiosilveira committed Aug 28, 2023
1 parent c995d75 commit ec544d5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/order/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@ export class Order {
constructor(data) {
this.priority = data.priority;
}

get priority() {
return this._priority;
}

set priority(aString) {
this._priority = aString;
}
}

0 comments on commit ec544d5

Please sign in to comment.