From f7779e0797cf1b9bb48b0e7f68dd19da555cc4d5 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 5 Feb 2022 18:03:14 +0100 Subject: [PATCH] Update Buyable.php --- src/Contracts/Buyable.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Contracts/Buyable.php b/src/Contracts/Buyable.php index 65e4e3d..675e378 100644 --- a/src/Contracts/Buyable.php +++ b/src/Contracts/Buyable.php @@ -2,6 +2,7 @@ namespace Gloudemans\Shoppingcart\Contracts; +use Gloudemans\Shoppingcart\CartItemOptions; use Money\Money; interface Buyable @@ -11,20 +12,20 @@ interface Buyable * * @return int|string */ - public function getBuyableIdentifier(); + public function getBuyableIdentifier(CartItemOptions $options); /** * Get the description or title of the Buyable item. */ - public function getBuyableDescription(): ?string; + public function getBuyableDescription(CartItemOptions $options): ?string; /** * Get the price of the Buyable item. */ - public function getBuyablePrice(): Money; + public function getBuyablePrice(CartItemOptions $options): Money; /** * Get the weight of the Buyable item. */ - public function getBuyableWeight(): int; + public function getBuyableWeight(CartItemOptions $options): int; }