Heystack\Ecommerce\Transaction\Interfaces\TransactionModifierInterface
Defines what functions a TransactionModifier Class needs to implement
- Author: Glenn Bautista <glenn@heyday.co.nz>
- Copyright: Heyday
Synopsis
interface TransactionModifierInterface
{
- // methods
- public Identifier getIdentifier()
- public Money getTotal()
- public string getType()
Methods
public
- getIdentifier() — Returns a unique identifier for use in the Transaction
- getTotal() — Returns the total value of the TransactionModifier for use in the Transaction
- getType() — Indicates the type of amount the modifier will return Must return a constant from TransactionModifierTypes