ZenMagick 0.9.8


org.zenmagick.store.model.checkout.ZMOrderTotalDetails
\store\model\checkout\ZMOrderTotalDetails.php at line 37

Class ZMOrderTotalDetails

ZMObject
└─ZMOrderTotalDetails

public class ZMOrderTotalDetails
extends ZMObject

Order total details as returned by an ZMOrderTotalPlugin.

The title and amount are the minimum requirements for an order total. All other available properties are optional.

Author:
DerManoMann
Version:
$Id: ZMOrderTotalDetails.php 2694 2009-12-03 22:32:18Z dermanomann $

Fields inherited from org.zenmagick.core.ZMObject
properties_
Constructor Summary

ZMOrderTotalDetails(string title, float amount)

Create new instance.

Method Summary
float

getAmount()

Get the amount.

float

getSubtotal()

Get the subtotal.

float

getTax()

Get the tax.

string

getTitle()

Get the title.

void

setSubtotal(float subtotal)

Set the subtotal.

void

setTax(float tax)

Set the tax.

Methods inherited from org.zenmagick.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\model\checkout\ZMOrderTotalDetails.php at line 50

ZMOrderTotalDetails

public ZMOrderTotalDetails(string title, float amount)

Create new instance.

Parameters:
title - The title.
amount - The amount.

Method Detail

\store\model\checkout\ZMOrderTotalDetails.php at line 78

getAmount

public float getAmount()

Get the amount.

Returns:
The amount.

\store\model\checkout\ZMOrderTotalDetails.php at line 85

getSubtotal

public float getSubtotal()

Get the subtotal.

Returns:
The subtotal.

\store\model\checkout\ZMOrderTotalDetails.php at line 99

getTax

public float getTax()

Get the tax.

Returns:
The tax.

\store\model\checkout\ZMOrderTotalDetails.php at line 71

getTitle

public string getTitle()

Get the title.

Returns:
The title.

\store\model\checkout\ZMOrderTotalDetails.php at line 92

setSubtotal

public void setSubtotal(float subtotal)

Set the subtotal.

Parameters:
subtotal - The subtotal.

\store\model\checkout\ZMOrderTotalDetails.php at line 106

setTax

public void setTax(float tax)

Set the tax.

Parameters:
tax - The tax.

ZenMagick 0.9.8