digitalfabrik/integreat-app

View on GitHub
web/src/models/SelectorItemModel.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
export default class SelectorItemModel {
  _code: string
  _name: string
  _href: string | null

  constructor(params: { code: string; name: string; href: string | null }) {
    this._code = params.code
    this._name = params.name
    this._href = params.href
  }

  get code(): string {
    return this._code
  }

  get name(): string {
    return this._name
  }

  get href(): string | null {
    return this._href
  }
}