*
*
CurrencyCode: CurrencyCode
* Value: string
*
*
*/
class Amazon_FPS_Model_Amount extends Amazon_FPS_Model
{
/**
* Construct new Amazon_FPS_Model_Amount
*
* @param mixed $data DOMElement or Associative Array to construct from.
*
* Valid properties:
*
*
* - CurrencyCode: CurrencyCode
* - Value: string
*
*
*/
public function __construct($data = null)
{
$this->_fields = array (
'CurrencyCode' => array('FieldValue' => null, 'FieldType' => 'CurrencyCode'),
'Value' => array('FieldValue' => null, 'FieldType' => 'string'),
);
parent::__construct($data);
}
/**
* Gets the value of the CurrencyCode property.
*
* @return CurrencyCode CurrencyCode
*/
public function getCurrencyCode()
{
return $this->_fields['CurrencyCode']['FieldValue'];
}
/**
* Sets the value of the CurrencyCode property.
*
* @param CurrencyCode CurrencyCode
* @return this instance
*/
public function setCurrencyCode($value)
{
$this->_fields['CurrencyCode']['FieldValue'] = $value;
return $this;
}
/**
* Sets the value of the CurrencyCode and returns this instance
*
* @param CurrencyCode $value CurrencyCode
* @return Amazon_FPS_Model_Amount instance
*/
public function withCurrencyCode($value)
{
$this->setCurrencyCode($value);
return $this;
}
/**
* Checks if CurrencyCode is set
*
* @return bool true if CurrencyCode is set
*/
public function isSetCurrencyCode()
{
return !is_null($this->_fields['CurrencyCode']['FieldValue']);
}
/**
* Gets the value of the Value property.
*
* @return string Value
*/
public function getValue()
{
return $this->_fields['Value']['FieldValue'];
}
/**
* Sets the value of the Value property.
*
* @param string Value
* @return this instance
*/
public function setValue($value)
{
$this->_fields['Value']['FieldValue'] = $value;
return $this;
}
/**
* Sets the value of the Value and returns this instance
*
* @param string $value Value
* @return Amazon_FPS_Model_Amount instance
*/
public function withValue($value)
{
$this->setValue($value);
return $this;
}
/**
* Checks if Value is set
*
* @return bool true if Value is set
*/
public function isSetValue()
{
return !is_null($this->_fields['Value']['FieldValue']);
}
}