mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-12 02:55:13 +00:00
35 lines
677 B
PHP
35 lines
677 B
PHP
<?php
|
|
|
|
namespace Gloudemans\Shoppingcart\Contracts;
|
|
|
|
interface Buyable
|
|
{
|
|
/**
|
|
* Get the identifier of the Buyable item.
|
|
*
|
|
* @return int|string
|
|
*/
|
|
public function getBuyableIdentifier($options = null);
|
|
|
|
/**
|
|
* Get the description or title of the Buyable item.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getBuyableDescription($options = null);
|
|
|
|
/**
|
|
* Get the price of the Buyable item.
|
|
*
|
|
* @return float
|
|
*/
|
|
public function getBuyablePrice($options = null);
|
|
|
|
/**
|
|
* Get the weight of the Buyable item.
|
|
*
|
|
* @return float
|
|
*/
|
|
public function getBuyableWeight($options = null);
|
|
}
|