From 55f7934ad8626c5d67bf089e6457c289f7d5ef23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s?= <8470427+andcl@users.noreply.github.com> Date: Wed, 2 Sep 2020 10:11:54 +0200 Subject: [PATCH] Updated README.md documentation Added getBuyableWeight() method to fully implement the interface, in the Buyable example. --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 3958faa..10d5397 100644 --- a/README.md +++ b/README.md @@ -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; + } } ```