*
*
ConstraintID: string
* Description: string
*
*
*/
class OffAmazonPaymentsService_Model_Constraint extends OffAmazonPaymentsService_Model
{
/**
* Construct new OffAmazonPaymentsService_Model_Constraint
*
* @param mixed $data DOMElement or Associative Array to construct from.
*
* Valid properties:
*
*
* - ConstraintID: string
* - Description: string
*
*
*/
public function __construct($data = null)
{
$this->_fields = array(
'ConstraintID' => array(
'FieldValue' => null,
'FieldType' => 'string'
),
'Description' => array(
'FieldValue' => null,
'FieldType' => 'string'
)
);
parent::__construct($data);
}
/**
* Gets the value of the ConstraintID property.
*
* @return string ConstraintID
*/
public function getConstraintID()
{
return $this->_fields['ConstraintID']['FieldValue'];
}
/**
* Sets the value of the ConstraintID property.
*
* @param string ConstraintID
* @return this instance
*/
public function setConstraintID($value)
{
$this->_fields['ConstraintID']['FieldValue'] = $value;
return $this;
}
/**
* Sets the value of the ConstraintID and returns this instance
*
* @param string $value ConstraintID
* @return OffAmazonPaymentsService_Model_Constraint instance
*/
public function withConstraintID($value)
{
$this->setConstraintID($value);
return $this;
}
/**
* Checks if ConstraintID is set
*
* @return bool true if ConstraintID is set
*/
public function isSetConstraintID()
{
return !is_null($this->_fields['ConstraintID']['FieldValue']);
}
/**
* Gets the value of the Description property.
*
* @return string Description
*/
public function getDescription()
{
return $this->_fields['Description']['FieldValue'];
}
/**
* Sets the value of the Description property.
*
* @param string Description
* @return this instance
*/
public function setDescription($value)
{
$this->_fields['Description']['FieldValue'] = $value;
return $this;
}
/**
* Sets the value of the Description and returns this instance
*
* @param string $value Description
* @return OffAmazonPaymentsService_Model_Constraint instance
*/
public function withDescription($value)
{
$this->setDescription($value);
return $this;
}
/**
* Checks if Description is set
*
* @return bool true if Description is set
*/
public function isSetDescription()
{
return !is_null($this->_fields['Description']['FieldValue']);
}
}