mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-20 06:15:11 +00:00
Update Buyable.php
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace Gloudemans\Shoppingcart\Contracts;
|
||||
|
||||
use Money\Money;
|
||||
|
||||
interface Buyable
|
||||
{
|
||||
/**
|
||||
@@ -18,15 +20,11 @@ interface Buyable
|
||||
|
||||
/**
|
||||
* Get the price of the Buyable item.
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getBuyablePrice();
|
||||
public function getBuyablePrice(): Money;
|
||||
|
||||
/**
|
||||
* Get the weight of the Buyable item.
|
||||
*
|
||||
* @return float
|
||||
*/
|
||||
public function getBuyableWeight();
|
||||
public function getBuyableWeight(): int;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user