UNPKG

yoastseo-dep

Version:

Yoast clientside page analysis

47 lines (41 loc) 808 B
import Node from "./Node"; /** * Represents miscellaneous metadata within the metadata tree branch. * * @extends module:parsedPaper/structure.LeafNode * * @memberOf module:parsedPaper/structure */ class MetadataMiscellaneous extends Node { /** * 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; } } export default MetadataMiscellaneous;