UNPKG

@manuth/woltlab-compiler

Version:

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

60 lines 1.41 kB
import { PHPInstructionCompiler } from "../../Compilation/PackageSystem/Instructions/PHPInstructionCompiler.js"; import { Instruction } from "./Instruction.js"; /** * Represents an instruction which executes an already existing `.php`-file on the server. */ export class PHPInstruction extends Instruction { /** * Initializes a new instance of the {@link PHPInstruction `PHPInstruction`} class. * * @param options * The options of the php-instruction. */ constructor(options) { super(options); this.Application = options.Application; } /** * @inheritdoc */ get Type() { return "script"; } /** * @inheritdoc */ get Compiler() { return new PHPInstructionCompiler(this); } /** * Gets or sets the application to load the php-file from. */ get Application() { return this.application; } /** * @inheritdoc */ set Application(value) { this.application = value; } /** * Gets or sets the name of the file to load the php-script from. */ get FileName() { return super.FileName; } /** * @inheritdoc */ set FileName(value) { super.FileName = value; } /** * @inheritdoc */ get FullName() { return this.FileName; } } //# sourceMappingURL=PHPInstruction.js.map