[de9008]: / contract / lib / Doctor.js

Download this file

33 lines (25 with data), 641 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'use strict';
class Doctor {
/**
*
* Doctor
*
* Constructor for a Doctor object.
*
* @param args.licenseId - the license number of the Doctor
* @param args.name - name of Doctor
* @param args.age - age of Doctor
* @param args.phNo - phone number of Doctor
* @returns - doctor object
*/
constructor(doctorId, licenseId, name, age, phNo) {
this.doctorId = doctorId;
this.licenseId = licenseId;
this.name = name;
this.age = age;
this.phNo = phNo;
this.type = 'doctor';
return this;
}
}
module.exports = Doctor;