*
*
name: string
* value: string
*
*
*/
class OffAmazonPaymentsNotifications_Model_SolutionProviderOption extends OffAmazonPayments_Model
{
/**
* Construct new OffAmazonPaymentsNotifications_Model_SolutionProviderOption
*
* @param mixed $data DOMElement or Associative Array to construct from.
*
* Valid properties:
*
*
* - name: string
* - value: string
*
*
*/
public function __construct($data = null)
{
$this->fields = array (
'name' => array('FieldValue' => null, 'FieldType' => 'string'),
'value' => array('FieldValue' => null, 'FieldType' => 'string'),
);
parent::__construct($data);
}
/**
* Gets the value of the name property.
*
* @return string name
*/
public function getname()
{
return $this->fields['name']['FieldValue'];
}
/**
* Sets the value of the name property.
*
* @param string name
* @return this instance
*/
public function setname($value)
{
$this->fields['name']['FieldValue'] = $value;
return $this;
}
/**
* Sets the value of the name and returns this instance
*
* @param string $value name
* @return OffAmazonPaymentsNotifications_Model_SolutionProviderOption instance
*/
public function withname($value)
{
$this->setname($value);
return $this;
}
/**
* Checks if name is set
*
* @return bool true if name is set
*/
public function isSetname()
{
return !is_null($this->fields['name']['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 OffAmazonPaymentsNotifications_Model_SolutionProviderOption 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']);
}
}