Heystack\Ecommerce\Transaction\Traits\TransactionModifierStateTrait
Provides an implementation for the Statable Interface for Transaction Modifiers
- Author: Glenn Bautista <glenn@heyday.co.nz>
- Copyright: Heyday
Synopsis
trait TransactionModifierStateTrait
{
- // methods
- public void saveState()
- public void restoreState()
- public abstract State getStateService()
- public abstract IdentifierInterface getIdentifier()
- // Inherited methods from TransactionModifierHasDataTrait
- public abstract void setData()
- public abstract mixed getData()
Hierarchy
Methods
public
- getIdentifier()
- getStateService()
- restoreState() — Uses the State service to restore the data array
- saveState() — Saves the data array on the State service