29 lines
696 B
JavaScript
29 lines
696 B
JavaScript
export class Address {
|
|
constructor(street, suite, city, zipcode, geo) {
|
|
this._street = street;
|
|
this._suite = suite;
|
|
this._city = city;
|
|
this._zipcode = zipcode;
|
|
this._geo = geo;
|
|
}
|
|
|
|
get street() { return this._street; }
|
|
|
|
get suite() { return this._suite; }
|
|
|
|
get city() { return this._city; }
|
|
|
|
get zipcode() { return this._zipcode; }
|
|
|
|
get geo() { return this._geo; }
|
|
|
|
set street(street) { this._street = street; }
|
|
|
|
set suite(suite) { this._suite = suite; }
|
|
|
|
set city(city) { this._city = city; }
|
|
|
|
set zipcode(zipcode) { this._zipcode = zipcode; }
|
|
|
|
set geo(geo) { this._geo = geo; }
|
|
} |