Updated README.md documentation

Added getBuyableWeight() method to fully implement the interface, in the Buyable example.
This commit is contained in:
Andrés
2020-09-02 10:11:54 +02:00
committed by GitHub
parent a215c63165
commit 55f7934ad8

View File

@@ -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;
}
}
```