all files / src/data/ data.signature.js

100% Statements 2/2
100% Branches 6/6
100% Functions 1/1
100% Lines 2/2
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26                        13×       13×                  
/**
 * Class representing DataSignature
 * @class DataSignature
 */
class DataSignature {
 
    /**
     * creates new DataSignature object
     * @param {string} key
     * @param {function} importModule
     */
    constructor(key, importModule) {
        this.key = (typeof key === 'string')
            ? key
            : null;
 
        this.importModule = (this.key && typeof importModule === 'function')
            ? importModule
            : null;
    }
 
}
 
export {
    DataSignature,
};