/** * @return $this */ public function init() { $this->writer->startElement('extension'); $this->writeAttributeIfValueNotEmpty('type', $this->package->getType()); $this->writeAttributeIfValueNotEmpty('version', $this->package->getMinJoomlaVersion()); $this->writeAttributeIfValueNotEmpty('method', $this->package->getMethod()); $this->initProperties(); $this->initScriptfile(); $this->initExtensions(); $this->initLanguages(); $this->initUpdateServers(); $this->writer->endElement(); return $this; }