UNPKG

@manuth/woltlab-compiler

Version:

A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components

22 lines 675 B
import { XMLEditor } from "../../../Serialization/XMLEditor.js"; import { InstructionCompiler } from "./InstructionCompiler.js"; /** * Provides the functionality to compile PHP-instructions. */ export class PHPInstructionCompiler extends InstructionCompiler { /** * @inheritdoc * * @returns * The serialized document. */ Serialize() { let document = super.Serialize(); let editor = new XMLEditor(document.documentElement); if (this.Item.Application) { editor.SetAttribute("application", this.Item.Application); } return document; } } //# sourceMappingURL=PHPInstructionCompiler.js.map