sinProject-Inc/talk

View on GitHub
src/lib/chat/chat_locale_code.ts

Summary

Maintainability
A
2 hrs
Test Coverage
export class ChatLocaleCode {
    private readonly _value: string

    public constructor(value: string) {
        if (value.length < 1) {
            throw new Error('ChatLocaleCode must be at least 1 character long.')
        }

        this._value = value
    }

    public get value(): string {
        return this._value
    }
}