yoastseo
Version:
Yoast client-side content analysis
51 lines (48 loc) • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _Node = _interopRequireDefault(require("./Node"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
/**
* Represents miscellaneous metadata within the metadata tree branch.
*
* @extends module:parsedPaper/structure.LeafNode
*
* @memberOf module:parsedPaper/structure
*/
class MetadataMiscellaneous extends _Node.default {
/**
* Creates a new MetadataMiscellaneous node.
*
* @param {string} type The type of this node.
* @param {*} [data=null] The data.
*
* @constructor
*/
constructor(type = "MetadataMiscellaneous", data = null) {
super(type, null);
this._data = data;
}
/**
* Retrieves the data.
*
* @returns {*} The data.
*/
get data() {
return this._data;
}
/**
* Sets the data.
*
* @param {*} data The data to keep.
*
* @returns {void}
*/
set data(data) {
this._data = data;
}
}
var _default = exports.default = MetadataMiscellaneous;
//# sourceMappingURL=MetadataMiscellaneous.js.map