src/XQueue/Maileon/API/Reports/Bounce.php
function fromXML($xmlElement)
    {
        $this->contact = new ReportContact();
        $this->contact->fromXML($xmlElement->contact);

        if (isset($xmlElement->mailing_id)) $this->mailingId = $xmlElement->mailing_id;
        if (isset($xmlElement->timestamp)) $this->timestamp = $xmlElement->timestamp;
        if (isset($xmlElement->type)) $this->type = $xmlElement->type;
        if (isset($xmlElement->status_code)) $this->statusCode = $xmlElement->status_code;
        if (isset($xmlElement->source)) $this->source = $xmlElement->source;
    }
function fromXML($xmlElement)
    {
        $this->contact = new ReportContact();
        $this->contact->fromXML($xmlElement->contact);

        if (isset($xmlElement->mailing_id)) $this->mailingId = $xmlElement->mailing_id;
        if (isset($xmlElement->timestamp)) $this->timestamp = $xmlElement->timestamp;
        if (isset($xmlElement->type)) $this->type = $xmlElement->type;
        if (isset($xmlElement->status_code)) $this->statusCode = $xmlElement->status_code;
        if (isset($xmlElement->source)) $this->source = $xmlElement->source;
    }
Initializes this bounce from an XML representation.

@param SimpleXMLElement $xmlElement
the XML representation to use