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