/** * Create a file from the dom, and return its full path. * 'protected' so we can test around it. * @param EbayEnterprise_Dom_Document $dom * @param int $storeId * @return self */ protected function _createFileFromDom(EbayEnterprise_Dom_Document $dom, $storeId) { $dom->save($this->_generateFilePath($storeId)); return $this; }