All files / src/model City.tsx

100% Statements 12/12
100% Branches 0/0
100% Functions 9/9
100% Lines 12/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 34 35 36 37 38 39 40 41 42 43 44 45              17x 17x 17x 17x       2x       1x       2x       1x       2x       1x       2x       1x    
export default class City {
    private _name: string;
    private _latitude: number;
    private _longitude: number;
    private _pays: string;
  
    constructor(name: string, latitude: number, longitude: number, pays: string) {
      this._name = name;
      this._latitude = latitude;
      this._longitude = longitude;
      this._pays = pays;
    }
  
    get name(): string {
      return this._name;
    }
  
    set name(value: string) {
      this._name = value;
    }
  
    get latitude(): number {
      return this._latitude;
    }
  
    set latitude(value: number) {
      this._latitude = value;
    }
  
    get longitude(): number {
      return this._longitude;
    }
  
    set longitude(value: number) {
      this._longitude = value;
    }
  
    get pays(): string {
      return this._pays;
    }
  
    set pays(value: string) {
      this._pays = value;
    }
  }