mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 15:41:24 +00:00
Update Buyable.php
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace Gloudemans\Shoppingcart\Contracts;
|
namespace Gloudemans\Shoppingcart\Contracts;
|
||||||
|
|
||||||
|
use Gloudemans\Shoppingcart\CartItemOptions;
|
||||||
use Money\Money;
|
use Money\Money;
|
||||||
|
|
||||||
interface Buyable
|
interface Buyable
|
||||||
@@ -11,20 +12,20 @@ interface Buyable
|
|||||||
*
|
*
|
||||||
* @return int|string
|
* @return int|string
|
||||||
*/
|
*/
|
||||||
public function getBuyableIdentifier();
|
public function getBuyableIdentifier(CartItemOptions $options);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the description or title of the Buyable item.
|
* 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.
|
* Get the price of the Buyable item.
|
||||||
*/
|
*/
|
||||||
public function getBuyablePrice(): Money;
|
public function getBuyablePrice(CartItemOptions $options): Money;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the weight of the Buyable item.
|
* Get the weight of the Buyable item.
|
||||||
*/
|
*/
|
||||||
public function getBuyableWeight(): int;
|
public function getBuyableWeight(CartItemOptions $options): int;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user