Files
LaravelShoppingcart/src/Contracts/Buyable.php
Andrew Minion 56a87ae886 fix for styleci
2022-03-03 21:34:47 -06:00

37 lines
845 B
PHP

<?php
namespace Gloudemans\Shoppingcart\Contracts;
use Gloudemans\Shoppingcart\CartItemOptions;
use Money\Money;
interface Buyable
{
/**
* Get the identifier of the Buyable item.
*
* @return int|string
*/
public function getBuyableIdentifier(CartItemOptions $options);
/**
* Get the description or title of the Buyable item.
*/
public function getBuyableDescription(CartItemOptions $options): ?string;
/**
* Get the price of the Buyable item.
*/
public function getBuyablePrice(CartItemOptions $options): Money;
/**
* Get the weight of the Buyable item.
*/
public function getBuyableWeight(CartItemOptions $options): int;
/**
* Get the taxRate of the Buyable item.
*/
public function getBuyableTaxRate(CartItemOptions $options): float;
}