Skip to content

Commit

Permalink
Updated README.md documentation
Browse files Browse the repository at this point in the history
Added getBuyableWeight() method to fully implement the interface, in the Buyable example.
  • Loading branch information
andcl authored Sep 2, 2020
1 parent a215c63 commit 55f7934
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,9 @@ class Product extends Model implements Buyable {
public function getBuyablePrice($options = null) {
return $this->price;
}
public function getBuyableWeight($options = null) {
return $this->weight;
}
}
```

Expand Down

0 comments on commit 55f7934

Please sign in to comment.