mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-24 07:55:35 +00:00
Update Buyable.php
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user