19 lines
271 B
JavaScript
19 lines
271 B
JavaScript
"use strict";
|
|
export class MyRecovery {
|
|
constructor(data, func) {
|
|
this.data = data;
|
|
this.func = func;
|
|
}
|
|
|
|
getData() {
|
|
return this.data;
|
|
}
|
|
|
|
getFun() {
|
|
return this.func;
|
|
}
|
|
|
|
recovery() {
|
|
this.func();
|
|
}
|
|
} |