@manuth/woltlab-compiler
Version:
A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components
30 lines • 895 B
JavaScript
import { Instruction } from "./Instruction.js";
/**
* Represents an instruction which provides the functionality to delete named objects.
*/
export class NamedDeleteInstruction extends Instruction {
/**
* Initializes a new instance of the {@link NamedDeleteInstruction `NamedDeleteInstruction`} class.
*
* @param options
* The options for the named deletion-instruction.
*/
constructor(options) {
super(options);
/**
* The objects to delete.
*/
this.objectsToDelete = [];
if ((options.ObjectsToDelete !== null) &&
(options.ObjectsToDelete !== undefined)) {
this.ObjectsToDelete.push(...options.ObjectsToDelete);
}
}
/**
* @inheritdoc
*/
get ObjectsToDelete() {
return this.objectsToDelete;
}
}
//# sourceMappingURL=NamedDeleteInstruction.js.map