Heystack\Ecommerce\Purchasable\Interfaces\PurchasableInterface
Purchasable
This defines what methods are necessary to implement a Purchasable Class
- Author: Stevie Mayhew <stevie@heyday.co.nz>
- Copyright: Heyday
Synopsis
interface PurchasableInterface
extends ParentReferenceInterface
{
- // methods
- public Identifier getIdentifier()
- public Money getPrice()
- public void addStateService()
- public void addEventService()
- public void setQuantity()
- public int getQuantity()
- public void setUnitPrice()
- public Money getUnitPrice()
- public Money getTotal()
Hierarchy
Extends
- Heystack\Core\Storage\Interfaces\ParentReferenceInterface
Methods
public
- addEventService() — Adds the Event service to the Purchasable object
- addStateService() — Adds the State service to the Purchasable object
- getIdentifier() — Returns a unique identifier for the Purchasable object
- getPrice() — Returns the price of the Purchasable object
- getQuantity() — Returns the quantity of the Purchasable object in the PurchasableHolder
- getTotal() — Returns the total price of the Purchasble object in the PurchasableHolder
- getUnitPrice() — Returns the price of the Purchasable object in the PurchasableHolder
- setQuantity() — Sets the quantity of the Purchasable object in the PurchasableHolder
- setUnitPrice() — Sets the price of the Purchasable object in the PurchasableHolder