14 lines
276 B
TypeScript
14 lines
276 B
TypeScript
export class LeagueTimezone {
|
|
private readonly id: string;
|
|
|
|
constructor(id: string) {
|
|
if (!id || id.trim().length === 0) {
|
|
throw new Error('LeagueTimezone id must be a non-empty string');
|
|
}
|
|
this.id = id;
|
|
}
|
|
|
|
getId(): string {
|
|
return this.id;
|
|
}
|
|
} |