import { Language } from '@app/models/language' ; export class DictionaryItem { /** Text to translate */ private text : string ; /** Translated text */ private translation : string ; /** Origin text */ private fromLang : Language ; /** Target language */ private toLang : Language ; param text param translation param fromLang param toLang constructor ( text , translation , fromLang , toLang ) { this . text = text ; this . translation = translation ; this . fromLang = fromLang ; this . toLang = toLang ; } /**
     * Getter $text
     */ public get $text ( ) : string { return this . text ; } /**
     * Getter $translation
     */ public get $translation ( ) : string { return this . translation ; } /**
     * Getter $fromLang
     */ public get $fromLang ( ) : Language { return this . fromLang ; } /**
     * Getter $toLang
     */ public get $toLang ( ) : Language { return this . toLang ; } param value public set $text ( value ) { this . text = value ; } param value public set $translation ( value ) { this . translation = value ; } param value public set $fromLang ( value ) { this . fromLang = value ; } param value public set $toLang ( value ) { this . toLang = value ; } }