diff --git a/src/modifier/Modifier.js b/src/modifier/Modifier.js index d12b3ab..7ac3e31 100644 --- a/src/modifier/Modifier.js +++ b/src/modifier/Modifier.js @@ -4,6 +4,10 @@ * _modifications: {Object} */ class Modifier { + /** + * @type {string} _identifier + */ + _identifier; /** * @type {Map} _modifications */ @@ -21,11 +25,24 @@ class Modifier { */ _paddingValues; - constructor() { + constructor(identifier = null) { + if (identifier) { + this._identifier = identifier; + } this._modifications = new Object(); this._removeMods = []; } + /** + * + * @param {string} identifier + * @returns {Modifier|ChainableModifier} + */ + setIdentifier(identifier) { + this._identifier = identifier; + return this; + } + /** * Sets the modifications for widht and height to 100%. * @returns {Modifier} this modifier object