2017-05-09 15:42:06 +03:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
class Task {
|
2017-05-10 09:57:37 +03:00
|
|
|
constructor(content) {
|
|
|
|
this.content = content;
|
2017-05-09 15:42:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
static withId(id, title) {
|
|
|
|
let task = new Task(title);
|
|
|
|
task._id = id;
|
|
|
|
return task;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = Task;
|