* *
  • DestinationType: string
  • *
  • PhysicalDestination: OffAmazonPaymentsService_Model_Address
  • * * */ class OffAmazonPaymentsService_Model_Destination extends OffAmazonPaymentsService_Model { /** * Construct new OffAmazonPaymentsService_Model_Destination * * @param mixed $data DOMElement or Associative Array to construct from. * * Valid properties: * */ public function __construct($data = null) { $this->_fields = array ( 'DestinationType' => array('FieldValue' => null, 'FieldType' => 'string'), 'PhysicalDestination' => array('FieldValue' => null, 'FieldType' => 'OffAmazonPaymentsService_Model_Address'), ); parent::__construct($data); } /** * Gets the value of the DestinationType property. * * @return string DestinationType */ public function getDestinationType() { return $this->_fields['DestinationType']['FieldValue']; } /** * Sets the value of the DestinationType property. * * @param string DestinationType * @return this instance */ public function setDestinationType($value) { $this->_fields['DestinationType']['FieldValue'] = $value; return $this; } /** * Sets the value of the DestinationType and returns this instance * * @param string $value DestinationType * @return OffAmazonPaymentsService_Model_Destination instance */ public function withDestinationType($value) { $this->setDestinationType($value); return $this; } /** * Checks if DestinationType is set * * @return bool true if DestinationType is set */ public function isSetDestinationType() { return !is_null($this->_fields['DestinationType']['FieldValue']); } /** * Gets the value of the PhysicalDestination. * * @return Address PhysicalDestination */ public function getPhysicalDestination() { return $this->_fields['PhysicalDestination']['FieldValue']; } /** * Sets the value of the PhysicalDestination. * * @param Address PhysicalDestination * @return void */ public function setPhysicalDestination($value) { $this->_fields['PhysicalDestination']['FieldValue'] = $value; return; } /** * Sets the value of the PhysicalDestination and returns this instance * * @param Address $value PhysicalDestination * @return OffAmazonPaymentsService_Model_Destination instance */ public function withPhysicalDestination($value) { $this->setPhysicalDestination($value); return $this; } /** * Checks if PhysicalDestination is set * * @return bool true if PhysicalDestination property is set */ public function isSetPhysicalDestination() { return !is_null($this->_fields['PhysicalDestination']['FieldValue']); } } ?>