{"size": 819, "ext": "js", "max_stars_repo_path": "source/model/Loader.js", "max_stars_repo_name": "entoj/entoj-system", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "source/model/Loader.js", "max_issues_repo_name": "entoj/entoj-system", "max_issues_repo_issues_event_min_datetime": "2018-05-18T07:38:55.000Z", "max_issues_repo_issues_event_max_datetime": "2021-03-08T04:28:57.000Z", "max_forks_repo_path": "source/model/Loader.js", "max_forks_repo_name": "entoj/entoj-system", "max_forks_repo_forks_event_min_datetime": "2018-05-18T06:48:05.000Z", "max_forks_repo_forks_event_max_datetime": "2018-05-18T06:48:05.000Z"}
{"max_stars_count": null, "max_issues_count": 17, "max_forks_count": 1, "avg_line_length": 13.2096774194, "max_line_length": 56, "alphanum_fraction": 0.4884004884}
'use strict';

/**
 * Requirements
 * @ignore
 */
const Base = require('../Base.js').Base;


/**
 * @class
 * @memberOf entity
 * @extends {Base}
 */
class Loader extends Base
{
    /**
     * @ignore
     */
    constructor(items)
    {
        super();
        this._items = items || [];
    }


    /**
     * @inheritDoc
     */
    static get injections()
    {
        return { 'parameters': ['model/Loader.items'] };
    }


    /**
     * @inheritDocs
     */
    static get className()
    {
        return 'model/Loader';
    }


    /**
     * Loads & parses data and resolve it as an array
     *
     * @param {*} [changes]
     * @returns {Promise.<Array>}
     */
    load(changes)
    {
        return Promise.resolve(this._items);
    }
}

/**
 * Exports
 * @ignore
 */
module.exports.Loader = Loader;
