Update Buyable.php

This commit is contained in:
Patrick
2022-02-03 00:22:07 +01:00
committed by GitHub
parent 1b866e50e6
commit ad95835db0

View File

@@ -2,6 +2,8 @@
namespace Gloudemans\Shoppingcart\Contracts; namespace Gloudemans\Shoppingcart\Contracts;
use Money\Money;
interface Buyable interface Buyable
{ {
/** /**
@@ -18,15 +20,11 @@ interface Buyable
/** /**
* Get the price of the Buyable item. * Get the price of the Buyable item.
*
* @return float
*/ */
public function getBuyablePrice(); public function getBuyablePrice(): Money;
/** /**
* Get the weight of the Buyable item. * Get the weight of the Buyable item.
*
* @return float
*/ */
public function getBuyableWeight(); public function getBuyableWeight(): int;
} }