File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ export class Person {
18
18
}
19
19
20
20
get officeAreaCode ( ) {
21
- return this . _telephoneNumber . officeAreaCode ;
21
+ return this . _telephoneNumber . areaCode ;
22
22
}
23
23
24
24
set officeAreaCode ( arg ) {
25
- this . _telephoneNumber . officeAreaCode = arg ;
25
+ this . _telephoneNumber . areaCode = arg ;
26
26
}
27
27
28
28
get officeNumber ( ) {
Original file line number Diff line number Diff line change 1
1
export class TelephoneNumber {
2
2
get telephoneNumber ( ) {
3
- return `(${ this . officeAreaCode } ) ${ this . officeNumber } ` ;
3
+ return `(${ this . areaCode } ) ${ this . officeNumber } ` ;
4
4
}
5
5
6
- get officeAreaCode ( ) {
7
- return this . _officeAreaCode ;
6
+ get areaCode ( ) {
7
+ return this . _areaCode ;
8
8
}
9
9
10
- set officeAreaCode ( arg ) {
11
- this . _officeAreaCode = arg ;
10
+ set areaCode ( arg ) {
11
+ this . _areaCode = arg ;
12
12
}
13
13
14
14
get officeNumber ( ) {
You can’t perform that action at this time.
0 commit comments