Home Reference Source Test Repository

buildDocs/factory/DecoratorConfig.js

export class DecoratorConfig {
    constructor(execute, applicator, options = {}) {
        this.execute = execute;
        this.applicator = applicator;
        this.options = options;
    }
    get bound() {
        return this.options.bound != null ? this.options.bound : false;
    }
    get setter() {
        return this.options.setter != null ? this.options.setter : false;
    }
    get getter() {
        return this.options.getter != null ? this.options.getter : false;
    }
    get property() {
        return this.options.property != null ? this.options.property : false;
    }
    get method() {
        return this.options.method != null ? this.options.method : true;
    }
}