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

        if (isset($xmlElement->timestamp)) $this->timestamp = $xmlElement->timestamp;
        if (isset($xmlElement->old_status)) $this->oldStatus = $xmlElement->old_status;
        if (isset($xmlElement->new_status)) $this->newStatus = $xmlElement->new_status;
        if (isset($xmlElement->reason)) $this->reason = $xmlElement->reason;
    }
function fromXML($xmlElement)
    {
        $this->contact = new com_maileon_api_reports_ReportContact();
        $this->contact->fromXML($xmlElement->contact);

        if (isset($xmlElement->timestamp)) $this->timestamp = $xmlElement->timestamp;
        if (isset($xmlElement->old_status)) $this->oldStatus = $xmlElement->old_status;
        if (isset($xmlElement->new_status)) $this->newStatus = $xmlElement->new_status;
        if (isset($xmlElement->reason)) $this->reason = $xmlElement->reason;
    }
Initializes this bounce from an XML representation.

@param SimpleXMLElement $xmlElement
the XML representation to use