UNPKG

woltlab-compiler

Version:

A compiler for WoltLab-Package Archives and WoltLab-Package Components

54 lines 1.45 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const PHPInstructionCompiler_1 = require("../../Compilation/PackageSystem/Instructions/PHPInstructionCompiler"); const Instruction_1 = require("./Instruction"); /** * Represents an instruction which executes an already existing `php`-file on the server. */ class PHPInstruction extends Instruction_1.Instruction { /** * Initializes a new instance of the `PHPInstruction` class. */ constructor(options) { super(options); this.Application = options.Application; } /** * @inheritdoc */ get Type() { return "script"; } /** * @inheritdoc */ get Compiler() { return new PHPInstructionCompiler_1.PHPInstructionCompiler(this); } /** * Gets or sets the application to load the php-file from. */ get Application() { return this.application; } 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; } set FileName(value) { super.FileName = value; } /** * @inheritdoc */ get FullName() { return this.FileName; } } exports.PHPInstruction = PHPInstruction; //# sourceMappingURL=PHPInstruction.js.map