/** * Initializes the class with the given body XML response * * @param string $body * @throws IntacctException */ public function __construct($body) { parent::__construct($body); if (!isset($this->xml->acknowledgement)) { throw new IntacctException('Response is missing acknowledgement block'); } $this->setAcknowledgement($this->xml->acknowledgement); }
/** * Initializes the class with the given body XML response * * @param string $body * @throws IntacctException */ public function __construct($body) { parent::__construct($body); if (!isset($this->xml->operation)) { throw new IntacctException('Response is missing operation block'); } $this->setOperation($this->xml->operation); }