public function __construct(SimpleXMLElement $xml) { parent::__construct($xml->asXML()); $this->setHeader('Content-type', 'text/xml'); }
function __construct($rawResponse, $status, object $error) { parent::__construct($rawResponse); $this->setStatus($status); $this->setError($error); $this->setIsError(true); }