ZenMagick 0.9.10


zenmagick.store.shared.model.checkout\ZMShippingMethod
model\checkout\ZMShippingMethod.php at line 33

Class ZMShippingMethod

ZMObject
└─ZMShippingMethod

public class ZMShippingMethod
extends ZMObject

Shipping method.

Author:
DerManoMann

Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct(ZMShippingProvider provider, array zenMethod)

Create new shipping method.

float

getCost()

Get the shipping cost.

int

getId()

Get the shipping method id.

string

getName()

Get the shipping method name.

ZMShippingProvider

getProvider()

Get the shipping provider.

string

getShippingId()

Get the shipping id.

void

setId(int id)

Set the shipping method id.

void

setProvider(ZMShippingProvider provider)

Set the shipping provider.

void

setTaxRate(ZMTaxRate taxRate)

Set the tax rate.

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

Method Detail

model\checkout\ZMShippingMethod.php at line 45

__construct

public void __construct(ZMShippingProvider provider, array zenMethod)

Create new shipping method.

Parameters:
provider - The shipping provider for this method.
zenMethod - The zen-cart method infos.

model\checkout\ZMShippingMethod.php at line 86

getCost

public float getCost()

Get the shipping cost.

Returns:
The shipping cost.

model\checkout\ZMShippingMethod.php at line 65

getId

public int getId()

Get the shipping method id.

Returns:
The shipping method id.

model\checkout\ZMShippingMethod.php at line 79

getName

public string getName()

Get the shipping method name.

Returns:
The shipping method name.

model\checkout\ZMShippingMethod.php at line 93

getProvider

public ZMShippingProvider getProvider()

Get the shipping provider.

Returns:
The shipping provider.

model\checkout\ZMShippingMethod.php at line 114

getShippingId

public string getShippingId()

Get the shipping id.

Returns:
The shipping id as used by the shopping cart.

model\checkout\ZMShippingMethod.php at line 72

setId

public void setId(int id)

Set the shipping method id.

Parameters:
id - The shipping method id.

model\checkout\ZMShippingMethod.php at line 100

setProvider

public void setProvider(ZMShippingProvider provider)

Set the shipping provider.

Parameters:
provider - The shipping provider.

model\checkout\ZMShippingMethod.php at line 107

setTaxRate

public void setTaxRate(ZMTaxRate taxRate)

Set the tax rate.

Parameters:
taxRate - The tax rate.

ZenMagick 0.9.10