HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/blije-gasten.komma.pro/resources/js/global/models/address.js
/**
 * Address model.
 * To carry around address data
 */
class Address {
    constructor()
    {
        this._street = '';
        this._house_number = '';
        this._postal_code = '';
        this._city = '';
        this._phone = '';
        this._countryIso3 = '';
        this.toJSON = this._toJson.bind(this);
    }

    get street() {
        return this._street;
    }

    set street(value) {
        this._street = value;
    }

    get house_number() {
        return this._house_number;
    }

    set house_number(value) {
        this._house_number = value;
    }

    get postal_code() {
        return this._postal_code;
    }

    set postal_code(value) {
        this._postal_code = value;
    }

    get city() {
        return this._city;
    }

    set city(value) {
        this._city = value;
    }

    get phone() {
        return this._phone;
    }

    set phone(value) {
        this._phone = value;
    }

    get countryIso3() {
        return this._countryIso3;
    }

    set countryIso3(value) {
        this._countryIso3 = value;
    }

    _toJson()
    {
        return {
            'street' : this._street,
            'house_number' : this._house_number,
            'postal_code' : this._postal_code,
            'city' : this._city,
            'phone' : this._phone,
            'countryIso3' : this._countryIso3,
        }
    }
}

export { Address }