/**
 * Class that represents abstract metadata storage
 */
export class MetadataStorage {
    //######################### constructor #########################
    constructor(getMetadataFn) {
        this.getMetadataFn = getMetadataFn;
    }
    //######################### public methods #########################
    /**
     * Gets metadata from storage
     * @param id - Id of metadata to be obtained
     */
    getMetadata(id) {
        return this.getMetadataFn(id);
    }
}
//# sourceMappingURL=metadataStorage.service.js.map