ZenMagick 0.9.6


org.zenmagick.model.order.ZMOrderTotal

Class ZMOrderTotal

ZMObject
|
+--ZMOrderTotal

public class ZMOrderTotal
extends ZMObject

A order total line.

Author:
DerManoMann
Version:
$Id: ZMOrderTotal.php 2054 2009-03-12 03:41:22Z dermanomann $

Fields inherited from org.zenmagick.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.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

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

getAmount

public float getAmount()

Get the order total amount.

Returns:
The order total amount.

getId

public int getId()

Get the order total id.

Returns:
The order total id.

getName

public string getName()

Get the order total name.

Returns:
The order total name.

getType

public string getType()

Get the order total type.

Returns:
The order total type.

getValue

public string getValue()

Get the order total value.

Returns:
The formatted order total value.

setAmount

public void setAmount(float amount)

Set the order total amount.

Parameters:
amount - The order total amount.

setId

public void setId(int id)

Set the order total id.

Parameters:
id - The order total id.

setName

public void setName(mixed name)

Set the order total name.

Oparam:
string name The order total name.

setType

public void setType(string type)

Set the order total type.

Parameters:
type - The order total type.

setValue

public void setValue(string value)

Set the order total value.

Parameters:
value - The formatted order total value.

ZenMagick 0.9.6