{"size": 626, "ext": "js", "max_stars_repo_path": "lib/Task.js", "max_stars_repo_name": "lostinmannheim/hdb-pool", "max_stars_repo_stars_event_min_datetime": "2019-03-02T19:04:40.000Z", "max_stars_repo_stars_event_max_datetime": "2020-08-05T09:43:21.000Z", "max_issues_repo_path": "lib/Task.js", "max_issues_repo_name": "lostinmannheim/hdb-pool", "max_issues_repo_issues_event_min_datetime": "2020-01-31T06:10:55.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-10T19:08:27.000Z", "max_forks_repo_path": "lib/Task.js", "max_forks_repo_name": "lostinmannheim/hdb-pool", "max_forks_repo_forks_event_min_datetime": "2019-03-20T01:41:32.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-29T10:27:27.000Z"}
{"max_stars_count": 10, "max_issues_count": 7, "max_forks_count": 5, "avg_line_length": 13.6086956522, "max_line_length": 41, "alphanum_fraction": 0.5127795527}
'use strict';

/**
 * @class
 * @private
 */
class Task {
  /**
   * Constructor of Task
   * @param {TaskType} type
   * @param {*} resource resource of task
   */
  constructor(type, resource = null) {
    /**
     * task type
     * @type {TaskType}
     * @private
     */
    this._type = type;

    /**
     * resource of the task
     * @private
     */
    this._resource = resource;
  }

  /**
   * task type
   * @return {TaskType}
   */
  get taskType() {
    return this._type;
  }

  /**
   * resource of the task
   * @return {*}
   */
  get resource() {
    return this._resource;
  }
}

module.exports = Task;
