Files
LaravelShoppingcart/src/Contracts/Buyable.php
2016-09-04 12:11:03 +03:00

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);
}