mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-22 15:15:27 +00:00
27 lines
533 B
PHP
27 lines
533 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);
|
|
} |