ZenMagick 0.9.11


zenmagick.store.shared.model\ZMGVReceiver
model\ZMGVReceiver.php at line 35

Class ZMGVReceiver

ZMObject
└─ZMGVReceiver

public class ZMGVReceiver
extends ZMObject

A gift voucher receiver.

NOTE: The amount is always in the sessions current currency.

Author:
DerManoMann

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

__construct(array properties)

Create new instance.

string

getAmount()

Get the amount.

string

getEmail()

Get the receiver email.

string

getMessage()

Get the message.

string

getName()

Get the receiver name.

boolean

hasMessage()

Check if there is a message.

void

setAmount(string amount)

Set the amount.

void

setEmail(string email)

Set the receiver email.

void

setMessage(string message)

Set the message.

void

setName(string name)

Set the receiver name.

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

Method Detail

model\ZMGVReceiver.php at line 45

__construct

public void __construct(array properties)

Create new instance.

Parameters:
properties - Optional properties; default is an empty array;

model\ZMGVReceiver.php at line 80

getAmount

public string getAmount()

Get the amount.

Returns:
The (formatted) amount.

model\ZMGVReceiver.php at line 73

getEmail

public string getEmail()

Get the receiver email.

Returns:
The receiver email.

model\ZMGVReceiver.php at line 94

getMessage

public string getMessage()

Get the message.

Returns:
The message.

model\ZMGVReceiver.php at line 66

getName

public string getName()

Get the receiver name.

Returns:
The receiver name.

model\ZMGVReceiver.php at line 87

hasMessage

public boolean hasMessage()

Check if there is a message.

Returns:
true if there is a message, false if not.

model\ZMGVReceiver.php at line 115

setAmount

public void setAmount(string amount)

Set the amount.

Parameters:
amount - The (formatted) amount.

model\ZMGVReceiver.php at line 108

setEmail

public void setEmail(string email)

Set the receiver email.

Parameters:
email - The receiver email.

model\ZMGVReceiver.php at line 122

setMessage

public void setMessage(string message)

Set the message.

Parameters:
message - The message.

model\ZMGVReceiver.php at line 101

setName

public void setName(string name)

Set the receiver name.

Parameters:
name - The receiver name.

ZenMagick 0.9.11