public function toXMLString() { $str = ''; $str .= parent::toXMLString(); if ($this->UATPDetails != null) { $str .= '<ebl:UATPDetails>'; $str .= $this->UATPDetails->toXMLString(); $str .= '</ebl:UATPDetails>'; } if ($this->TransactionEntity != null) { $str .= '<urn:TransactionEntity>' . PPUtils::escapeInvalidXmlCharsRegex($this->TransactionEntity) . '</urn:TransactionEntity>'; } if ($this->Amount != null) { $str .= '<urn:Amount'; $str .= $this->Amount->toXMLString(); $str .= '</urn:Amount>'; } if ($this->InvoiceID != null) { $str .= '<urn:InvoiceID>' . PPUtils::escapeInvalidXmlCharsRegex($this->InvoiceID) . '</urn:InvoiceID>'; } if ($this->MsgSubID != null) { $str .= '<urn:MsgSubID>' . PPUtils::escapeInvalidXmlCharsRegex($this->MsgSubID) . '</urn:MsgSubID>'; } return $str; }
public function toXMLString() { $str = ''; $str .= parent::toXMLString(); if ($this->UATPDetails != null) { //prop is not a collection //prop is complex //prop is not enum //does not contain attribute or is attribute $str .= '<ebl:UATPDetails>'; $str .= $this->UATPDetails->toXMLString(); $str .= '</ebl:UATPDetails>'; } if ($this->TransactionEntity != null) { //prop is not a collection //prop not complex //prop is not value $str .= '<urn:TransactionEntity>' . $this->TransactionEntity . '</urn:TransactionEntity>'; } if ($this->Amount != null) { //prop is not a collection //prop is complex //prop is not enum //prop containsattribute $str .= '<urn:Amount'; $str .= $this->Amount->toXMLString(); $str .= '</urn:Amount>'; } if ($this->InvoiceID != null) { //prop is not a collection //prop not complex //prop is not value $str .= '<urn:InvoiceID>' . $this->InvoiceID . '</urn:InvoiceID>'; } if ($this->MsgSubID != null) { //prop is not a collection //prop not complex //prop is not value $str .= '<urn:MsgSubID>' . $this->MsgSubID . '</urn:MsgSubID>'; } return $str; }