protected function prepareForXml() { parent::prepareForXml(); if (!$this->getStatus()) { throw new InvalidResponseException('Missing Status'); } }