ZenMagick 0.9.8


org.zenmagick.store.model.order.ZMOrderTotal
\store\model\order\ZMOrderTotal.php at line 34

Class ZMOrderTotal

ZMObject
└─ZMOrderTotal

public class ZMOrderTotal
extends ZMObject

A order total line.

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

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

ZMOrderTotal(string name, string value, float amount, string type)

Create new total.

Method Summary
float

getAmount()

Get the order total amount.

int

getId()

Get the order total id.

string

getName()

Get the order total name.

string

getType()

Get the order total type.

string

getValue()

Get the order total value.

void

setAmount(float amount)

Set the order total amount.

void

setId(int id)

Set the order total id.

void

setName(mixed name)

Set the order total name.

void

setType(string type)

Set the order total type.

void

setValue(string value)

Set the order total value.

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

Constructor Detail

\store\model\order\ZMOrderTotal.php at line 49

ZMOrderTotal

public ZMOrderTotal(string name, string value, float amount, string type)

Create new total.

Parameters:
name - The total name.
value - The total value.
amount - The total amount.
type - The total type.

Method Detail

\store\model\order\ZMOrderTotal.php at line 92

getAmount

public float getAmount()

Get the order total amount.

Returns:
The order total amount.

\store\model\order\ZMOrderTotal.php at line 71

getId

public int getId()

Get the order total id.

Returns:
The order total id.

\store\model\order\ZMOrderTotal.php at line 78

getName

public string getName()

Get the order total name.

Returns:
The order total name.

\store\model\order\ZMOrderTotal.php at line 99

getType

public string getType()

Get the order total type.

Returns:
The order total type.

\store\model\order\ZMOrderTotal.php at line 85

getValue

public string getValue()

Get the order total value.

Returns:
The formatted order total value.

\store\model\order\ZMOrderTotal.php at line 127

setAmount

public void setAmount(float amount)

Set the order total amount.

Parameters:
amount - The order total amount.

\store\model\order\ZMOrderTotal.php at line 106

setId

public void setId(int id)

Set the order total id.

Parameters:
id - The order total id.

\store\model\order\ZMOrderTotal.php at line 113

setName

public void setName(mixed name)

Set the order total name.

Oparam:
string name The order total name.

\store\model\order\ZMOrderTotal.php at line 134

setType

public void setType(string type)

Set the order total type.

Parameters:
type - The order total type.

\store\model\order\ZMOrderTotal.php at line 120

setValue

public void setValue(string value)

Set the order total value.

Parameters:
value - The formatted order total value.

ZenMagick 0.9.8